From 1a939ae38f63fa0d9cc1c93b040006c2e30bedcb Mon Sep 17 00:00:00 2001 From: Qianze Zhang Date: Tue, 16 Apr 2024 14:36:10 +0800 Subject: [PATCH] Create gitee-sync.yml --- .github/workflows/gitee-sync.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/gitee-sync.yml diff --git a/.github/workflows/gitee-sync.yml b/.github/workflows/gitee-sync.yml new file mode 100644 index 0000000..c675a83 --- /dev/null +++ b/.github/workflows/gitee-sync.yml @@ -0,0 +1,29 @@ +name: gitee-sync +on: + pull_request: + workflow_dispatch: + push: + branches: + - release/** +jobs: + build: + name: gitee-sync + runs-on: ubuntu-latest + + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + if: github.actor != 'dependabot[bot]' + steps: + - name: Gitee sync repo + uses: Yikun/hub-mirror-action@v1.3 + with: + src: github/AgoraIO + dst: gitee/agoraio-community + white_list: "RTM2" + static_list: "RTM2" + cache_path: "./cache" + dst_key: ${{ secrets.GITEE_PI_SSH }} + dst_token: ${{ secrets.GITEE_PRIVATE_TOKEN }} + force_update: true + account_type: org