Sync with upstream #6605
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
name: Sync with upstream | |
on: | |
push: # push 时触发, 主要是为了测试配置有没有问题 | |
schedule: | |
- cron: '* */3 * * *' # 每3小时触发, 对于一些更新不那么频繁的项目可以设置为每天一次, 低碳一点 | |
jobs: | |
repo-sync: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: tgymnich/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
owner: andream7 # fork 的上游仓库 user | |
head: main # fork 的上游仓库 branch | |
base: main # 本地仓库 branch |