File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1111 runs-on : ubuntu-latest
1212 if : github.event.label.name == 'Rebuild' || github.event_name == 'workflow_dispatch'
1313
14+ env :
15+ HEAD_REF : ${{ github.event.pull_request.head.ref || github.event.ref }}
16+ BASE_BRANCH : ${{ github.event.pull_request.base.ref || 'main' }}
17+
1418 permissions :
1519 contents : write # needed to push rebuilt commit
1620 pull-requests : write # needed to comment on the PR
1923 uses : actions/checkout@v5
2024 with :
2125 fetch-depth : 0
22- ref : ${{ github.event.pull_request.head.ref || github.event.ref }}
26+ ref : ${{ env.HEAD_REF }}
2327
2428 - name : Remove label
2529 if : github.event_name == 'pull_request'
3741
3842 - name : Merge in changes from base branch
3943 id : merge
40- env :
41- BASE_BRANCH : ${{ github.event.pull_request.base.ref || 'main' }}
4244 run : |
4345 git fetch origin "$BASE_BRANCH"
4446
7375 python-version : 3.11
7476
7577 - name : Sync back version updates to generated workflows
78+ # Only sync back versions on Dependabot update PRs
79+ if : startsWith(env.HEAD_REF, 'dependabot/')
7680 working-directory : pr-checks
7781 run : |
7882 python3 sync_back.py -v
You can’t perform that action at this time.
0 commit comments