Create main.yml
This commit is contained in:
parent
b355056c5d
commit
4f006753e8
17
.github/workflows/main.yml
vendored
Normal file
17
.github/workflows/main.yml
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
# .github/workflows/sync.yml
|
||||
name: Sync Fork
|
||||
|
||||
on:
|
||||
push: # push 时触发, 主要是为了测试配置有没有问题
|
||||
schedule:
|
||||
- cron: '*/5 * * *' # 每5分钟触发, 对于一些更新不那么频繁的项目可以设置为每天一次, 低碳一点
|
||||
jobs:
|
||||
repo-sync:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: TG908/fork-sync@v1.6.3
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
owner: box # fork 的上游仓库 user
|
||||
head: main # fork 的上游仓库 branch
|
||||
base: main # 本地仓库 branch
|
Loading…
x
Reference in New Issue
Block a user