Create sync.yml
This commit is contained in:
28
.github/workflows/sync.yml
vendored
Normal file
28
.github/workflows/sync.yml
vendored
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user