Skip to content

Commit 668839c

Browse files
authored
Update HubMirror.yml
1 parent 90148aa commit 668839c

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

.github/workflows/HubMirror.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
1-
steps:
2-
- name: Mirror the Github organization repos to Gitee.
3-
uses: knight000/trackerslist@master
4-
with:
5-
src: github/knight000
6-
dst: gitee/kni_gitee
7-
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
8-
dst_token: ${{ secrets.GITEE_TOKEN }}
9-
account_type: user
1+
name: Hub Mirror
2+
3+
on:
4+
push: # push 时触发, 主要是为了测试配置有没有问题
5+
schedule:
6+
- cron: '* */24 * * *' # 每天一次, 低碳一点
7+
jobs:
8+
hub-mirror-action:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Mirror the Github organization repos to Gitee.
12+
- uses: Yikun/[email protected]
13+
with:
14+
src: github/knight000
15+
dst: gitee/kni_gitee
16+
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
17+
dst_token: ${{ secrets.GITEE_TOKEN }}
18+
account_type: user

0 commit comments

Comments
 (0)