There was an error while loading. Please reload this page.
2 parents 658ab44 + e1d6429 commit 20a3b8fCopy full SHA for 20a3b8f
1 file changed
.github/workflows/release-prep.yml
@@ -22,6 +22,10 @@ on:
22
permissions:
23
contents: write
24
pull-requests: write
25
+ # gh label create requires issues:write (labels API) — without it the
26
+ # ensure-label step silently fails (previously swallowed by `|| true`) and
27
+ # `gh pr create --label release` errors with "label 'release' not found".
28
+ issues: write
29
30
concurrency:
31
group: release-prep
@@ -121,7 +125,7 @@ jobs:
121
125
- name: Ensure release label
122
126
env:
123
127
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
124
- run: gh label create release --if-not-exists --color 0E8A16 || true
128
+ run: gh label create release --if-not-exists --color 0E8A16
129
130
# State-aware PR handling. `gh pr view` also matches closed PRs, and
131
# `gh pr edit` silently keeps them closed — which would make a re-run
0 commit comments