Sync upstream #70
This file contains hidden or 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 upstream | |
| on: | |
| schedule: | |
| - cron: '0 */6 * * *' # 每 6 小时检测上游新提交 | |
| workflow_dispatch: # 也可手动触发 | |
| permissions: | |
| contents: write | |
| jobs: | |
| sync: | |
| if: github.repository != 'OpenWSGR/AutoWSGR' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Sync fork with upstream | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: gh repo sync ${{ github.repository }} --force |