From 3416ed69d789090918f85a285912ab77f3584ac3 Mon Sep 17 00:00:00 2001 From: qtwrk Date: Tue, 2 Nov 2021 23:41:47 +0100 Subject: [PATCH 1/2] auto-sync to gitee.com --- .github/workflows/sync2gitee.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/sync2gitee.yml diff --git a/.github/workflows/sync2gitee.yml b/.github/workflows/sync2gitee.yml new file mode 100644 index 000000000..7e5b2a3c8 --- /dev/null +++ b/.github/workflows/sync2gitee.yml @@ -0,0 +1,22 @@ +name: sync2gitee +on: [push, pull_request,create,delete] +jobs: + repo-sync: + env: + dst_key: ${{ secrets.GITEE_PRIVATE_KEY }} + dst_token: ${{ secrets.GITEE_TOKEN }} + gitee_user: ${{ secrets.GITEE_USER }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + persist-credentials: false + - name: sync github -> gitee + uses: Yikun/hub-mirror-action@master + if: env.dst_key && env.dst_token && env.gitee_user + with: + src: 'github/${{ github.repository_owner }}' + dst: 'gitee/${{ secrets.GITEE_USER }}' + dst_key: ${{ secrets.GITEE_PRIVATE_KEY }} + dst_token: ${{ secrets.GITEE_TOKEN }} + static_list: ${{ github.event.repository.name }} From acd0859ee23d44f2b1f260d518f5d4d1d61b2ad9 Mon Sep 17 00:00:00 2001 From: qtwrk Date: Sat, 13 Nov 2021 21:20:34 +0100 Subject: [PATCH 2/2] Update sync2gitee.yml --- .github/workflows/sync2gitee.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sync2gitee.yml b/.github/workflows/sync2gitee.yml index 7e5b2a3c8..fdeed850a 100644 --- a/.github/workflows/sync2gitee.yml +++ b/.github/workflows/sync2gitee.yml @@ -1,5 +1,17 @@ name: sync2gitee -on: [push, pull_request,create,delete] +on: + push: + branches: + - '**' + pull_request: + branches: + - '**' + create: + branches: + - '**' + delete: + branches: + - '**' jobs: repo-sync: env: