From 107215aadcf13333ad9b5a18c12b3dc53bc05aad Mon Sep 17 00:00:00 2001 From: ibuler Date: Fri, 17 Dec 2021 11:14:12 +0800 Subject: [PATCH] =?UTF-8?q?workflow:=20=E6=B7=BB=E5=8A=A0=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=20gitee=20=E7=9A=84=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/sync-gitee.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/sync-gitee.yml diff --git a/.github/workflows/sync-gitee.yml b/.github/workflows/sync-gitee.yml new file mode 100644 index 000000000..55871042a --- /dev/null +++ b/.github/workflows/sync-gitee.yml @@ -0,0 +1,23 @@ +name: 🔀 Sync mirror to Gitee + +on: + push: + branches: + - master + - dev + create: + +jobs: + mirror: + runs-on: ubuntu-latest + if: github.repository == 'jumpserver/jumpserver' + steps: + - name: mirror + continue-on-error: true + if: github.event_name == 'push' || (github.event_name == 'create' && github.event.ref_type == 'tag') + uses: wearerequired/git-mirror-action@v1 + env: + SSH_PRIVATE_KEY: ${{ secrets.GITEE_SSH_PRIVATE_KEY }} + with: + source-repo: 'git@github.com:jumpserver/jumpserver.git' + destination-repo: 'git@gitee.com:jumpserver/jumpserver.git'