diff --git a/.github/workflows/gitee-sync.yml b/.github/workflows/gitee-sync.yml new file mode 100644 index 000000000..152f70455 --- /dev/null +++ b/.github/workflows/gitee-sync.yml @@ -0,0 +1,27 @@ +on: + push: + # delete this item if you don't want to trigger this workflow when modify this repo + branches: master + schedule: + # * is a special character in YAML so you have to quote this string + # UTC 17:00 -> CST (China) 1:00, see https://datetime360.com/cn/utc-cst-china-time/ + - cron: '0 17 * * *' +name: Mirror GitHub Auto Queried Repos to Gitee +jobs: + run: + name: Sync-GitHub-to-Gitee + runs-on: ubuntu-latest + steps: + - name: Mirror the Github repos to Gitee. + uses: Yikun/hub-mirror-action@master + with: + src: github/AgoraIO + dst: gitee/agoraio-community + white_list: "API-Examples" + static_list: "API-Examples" + dst_key: ${{ secrets.GITEE_PI_SSH }} + dst_token: ${{ secrets.GITEE_PRIVATE_TOKEN }} + mappings: ".github=>github" + cache_path: "./cache" + force_update: true + account_type: org