From 9997caaedf2c6db0d1dbe0b98b5a0889bc838fde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BE=E5=87=A0=E6=B5=B7?= Date: Tue, 5 Oct 2021 15:43:38 +0800 Subject: [PATCH] Create sync.yml --- .github/workflows/sync.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/sync.yml diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml new file mode 100644 index 0000000..92fc834 --- /dev/null +++ b/.github/workflows/sync.yml @@ -0,0 +1,28 @@ +name: Sync Repository Action +on: + push: + schedule: + # 每周一0:00 + - cron: '0 0 0 ? * 2' + +name: Sync Repository Action +on: + push: + schedule: + # 每天北京时间0点同步 + - cron: '0 16 * * *' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Sync to Gitee + uses: x-dr/sync-repo-to-gitee@master + env: + # 在 Settings->Secrets 配置 GITEE_KEY + SSH_KEY: ${{ secrets.GITEE_KEY }} + with: + # GitHub存储库的SSH URL. + github-repo: git@github.com:xiaohai2271/blog-backEnd.git + # Gitee存储库的SSH URL. + gitee-repo: git@gitee.com:xiaohai2271/blog-backEnd.git