File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11---
2- # Requires: Settings -> Actions -> General ->
3- # "Allow GitHub Actions to create and approve pull requests".
2+ # Requires:
3+ # * Settings -> Actions -> General ->
4+ # "Allow GitHub Actions to create and approve pull requests".
5+ # * A repo secret SYNC_TOKEN holding a PAT with the `workflow` scope
46name : Sync upstream release
57
68on : # yamllint disable-line rule:truthy
2527 with :
2628 ref : ${{ env.TARGET_BRANCH }}
2729 fetch-depth : 0
30+ # PAT with `workflow` scope so the push may include upstream
31+ # changes to .github/workflows/*. Persisted for the git push step.
32+ token : ${{ secrets.SYNC_TOKEN }}
2833
2934 - name : Configure git identity
3035 run : |
8691 - name : Open or update pull request
8792 if : steps.merge.outputs.up_to_date == 'false'
8893 env :
89- GH_TOKEN : ${{ github.token }}
94+ # PAT (not GITHUB_TOKEN) so the PR triggers build-image's
95+ # pull_request check to confirm the merged upstream still builds.
96+ GH_TOKEN : ${{ secrets.SYNC_TOKEN }}
9097 UPSTREAM_TAG : ${{ steps.upstream.outputs.tag }}
9198 SYNC_BRANCH : ${{ steps.upstream.outputs.branch }}
9299 CONFLICTS : ${{ steps.merge.outputs.conflicts }}
You can’t perform that action at this time.
0 commit comments