From ab993da733d91e99850e5d7b07cf7f33012681ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E5=86=B7?= <2270033969@qq.com> Date: Tue, 27 Aug 2024 15:37:27 +0800 Subject: [PATCH] ci(gitcode): ADD CI mirror gitcode --- .github/workflows/mirror.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 2d273d15..05516ddf 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -7,6 +7,15 @@ on: branches: [ master,jdk17,jdk17-dev,dev ] jobs: + gitcode: + runs-on: ubuntu-latest + steps: + - uses: wearerequired/git-mirror-action@master #同步至 gitcode + env: + SSH_PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} + with: + source-repo: "git@github.com:pig-mesh/pig.git" + destination-repo: "git@gitcode.com:pig-mesh/pig.git" gitlink: runs-on: ubuntu-latest steps: