Skip to content

Commit 8824933

Browse files
committed
ci: report blocked qpk pin pr creation
1 parent fb0b04a commit 8824933

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/update-qpk-pin.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ jobs:
9292
echo "All compatibility checks passed."
9393
9494
- name: Create PR for pin update
95+
id: create_pin_pr
9596
if: steps.update.outputs.changed == 'true'
97+
continue-on-error: true
9698
uses: peter-evans/create-pull-request@v7
9799
with:
98100
token: ${{ github.token }}
@@ -111,3 +113,19 @@ jobs:
111113
branch: auto/qpk-pin-update
112114
delete-branch: true
113115
base: main
116+
117+
- name: Report blocked pin PR creation
118+
if: steps.update.outputs.changed == 'true' && steps.create_pin_pr.outcome == 'failure'
119+
run: |
120+
cat >> "$GITHUB_STEP_SUMMARY" <<'MD'
121+
## QPK pin update PR not created
122+
123+
The generated `QPK_PIN` / `constraints.txt` update was verified, but repository policy prevented `GITHUB_TOKEN` from creating a pull request.
124+
125+
Manual follow-up:
126+
- Enable the repository setting that allows GitHub Actions to create pull requests, or
127+
- Run the pin update manually from a reviewed maintainer branch.
128+
129+
This workflow intentionally does not fall back to a PAT-based bypass.
130+
MD
131+
echo "::warning::QPK pin update PR was not created because repository policy blocks GitHub Actions PR creation."

0 commit comments

Comments
 (0)