Skip to content

Commit e192426

Browse files
authored
启用自动同步fork
1 parent b82e958 commit e192426

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/Sync.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Sync Fork
2+
3+
on:
4+
push: # push 时触发, 主要是为了测试配置有没有问题
5+
schedule:
6+
- cron: '* */24 * * *' # 每3小时触发, 对于一些更新不那么频繁的项目可以设置为每天一次, 低碳一点
7+
jobs:
8+
repo-sync:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: TG908/[email protected]
12+
with:
13+
github_token: ${{ secrets.GITHUB_TOKEN }}
14+
owner: ngosang # fork 的上游仓库 user
15+
head: master # fork 的上游仓库 branch
16+
base: master # 本地仓库 branch

0 commit comments

Comments
 (0)