From 88c4237a91bed84e56728a233456b465bf5028d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E5=86=B7?= <2270033969@qq.com> Date: Mon, 10 Jun 2024 08:48:41 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20=E5=A2=9E=E5=8A=A0=20CI=20?= =?UTF-8?q?=EF=BC=8C=E6=94=AF=E6=8C=81=E5=A4=9A=E4=B8=AA=20Git=20Repo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 💚 增加 CI ,支持多个 Git Repo 💚 增加 CI ,支持多个 Git Repo --- .github/workflows/maven.yml | 2 +- .github/workflows/mirror.yml | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 79b631a0..229ab6a6 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java-version: [ 8, 11, 17 ] + java-version: [ 8 ] steps: - uses: actions/checkout@v3 - name: Set up JDK ${{ matrix.java-version }} diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 112d4506..ac0eab3d 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -14,3 +14,12 @@ jobs: with: source-repo: "git@github.com:pig-mesh/pig.git" destination-repo: "git@code.gitlink.org.cn:lengleng/pig.git" + - name: Delete existing repository + run: sudo rm -rf /home/runner/work/pig/pig + + - uses: wearerequired/git-mirror-action@master #同步至 gitee + env: + SSH_PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} + with: + source-repo: "git@github.com:pig-mesh/pig.git" + destination-repo: "git@gitee.com:log4j/pig.git"