From ebaa32cb0c50bb8d5a12bd5a577a5cf510a1950e Mon Sep 17 00:00:00 2001 From: "yaoyuan2.chu" Date: Thu, 15 Apr 2021 11:50:45 +0800 Subject: [PATCH] Create auto-sync.yml auto --- .github/workflows/auto-sync.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/auto-sync.yml diff --git a/.github/workflows/auto-sync.yml b/.github/workflows/auto-sync.yml new file mode 100644 index 0000000..4e4a1e8 --- /dev/null +++ b/.github/workflows/auto-sync.yml @@ -0,0 +1,22 @@ +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: chuyaoyuan/Jiscuss@master + with: + src: github/Chuyaoyuan + dst: gitee/chuyaoyuan + dst_key: ${{ secrets.GITEE_PRIVATE_KEY }} + dst_token: ${{ secrets.GITEE_TOKEN }} + force_update: true