Sync to Upstream #1729
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 to Upstream | |
| on: | |
| schedule: | |
| - cron: '17 5 * * *' | |
| # scheduled at 05:17 every day | |
| workflow_dispatch: | |
| jobs: | |
| sync_with_upstream: | |
| runs-on: ubuntu-latest | |
| name: Sync HEAD with upstream latest | |
| steps: | |
| # Step 1: run a standard checkout action, provided by github | |
| - name: Checkout HEAD | |
| uses: actions/checkout@v2 | |
| with: | |
| ref: main | |
| # Step 2: run this sync action - specify the upstream repo, upstream branch to sync with, and target sync branch | |
| - name: Pull upstream changes | |
| id: sync | |
| uses: aormsby/Fork-Sync-With-Upstream-action@main | |
| with: | |
| upstream_sync_repo: cleder/awesome-python-testing | |
| upstream_sync_branch: main | |
| git_pull_args: --unshallow | |
| target_sync_branch: main # optional | |
| github_token: ${{ secrets.GITHUB_TOKEN }} # optional, for accessing repos that require authentication |