We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23769a0 commit 315c0d0Copy full SHA for 315c0d0
.github/workflows/sync.yml
@@ -0,0 +1,19 @@
1
+# https://github.com/marketplace/actions/fork-sync?version=v1.2.1
2
+# .github/workflows/sync.yml
3
+name: Sync Fork
4
+
5
+on:
6
+ push: # push 时触发, 主要是为了测试配置有没有问题
7
+ schedule:
8
+ - cron: '0 * * * *' # 每小时 0分触发, 对于一些更新不那么频繁的项目可以设置为每天一次, 低碳一点
9
+jobs:
10
+ repo-sync:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: TG908/[email protected]
14
+ with:
15
+ github_token: ${{ secrets.GITHUB_TOKEN }} # 这个 token action 会默认配置, 这里只需这样写就行
16
+ owner: better-go # fork 上游项目 owner
17
+ head: master # fork 上游项目需要同步的分支
18
+ base: master # 需要同步到本项目的目标分支
19
+ auto_approve: true
0 commit comments