Skip to content

Sync Fork

Sync Fork #4191

Workflow file for this run

# .github/workflows/sync.yml
name: Sync Fork
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
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: XiaoMiku01 # fork 上游项目 owner
head: master # fork 上游项目需要同步的分支
base: master # 需要同步到本项目的目标分支