Skip to content

Commit d130035

Browse files
committed
sync workflow
1 parent 54d5b3b commit d130035

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Sync To Gitee
2+
3+
on: # 这里是github action的触发条件
4+
schedule:
5+
- cron: '0 8 * * *' # 每日24点进行同步
6+
push:
7+
delete:
8+
create:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
15+
- name: Sync yourreponame to Gitee
16+
uses: wearerequired/git-mirror-action@master
17+
env:
18+
# 注意在 Settings->Secrets 配置 GITEE_RSA_PRIVATE_KEY
19+
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
20+
with:
21+
# 注意替换为你的 GitHub 源仓库地址
22+
source-repo: [email protected]:cit965/k8s-learning.git
23+
# 注意替换为你的 Gitee 目标仓库地址
24+
destination-repo: [email protected]:mouuii/k8s-learning.git

0 commit comments

Comments
 (0)