Sync Fork #30344
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/marketplace/actions/fork-sync?version=v1.2.1 | |
# .github/workflows/sync.yml | |
name: Sync Fork | |
on: | |
push: # push 时触发, 主要是为了测试配置有没有问题 | |
schedule: | |
- cron: '0 * * * *' # 每小时 0分触发, 对于一些更新不那么频繁的项目可以设置为每天一次, 低碳一点 | |
jobs: | |
repo-sync: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: TG908/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} # 这个 token action 会默认配置, 这里只需这样写就行 | |
owner: zeromicro # fork 上游项目 owner | |
head: master # fork 上游项目需要同步的分支 | |
base: master # 需要同步到本项目的目标分支 | |
auto_approve: true |