Skip to content

Commit 20a3b8f

Browse files
authored
Merge pull request #20 from omdsh-dev/fix/release-prep-label-perm
fix(release-prep): label creation permission (issues: write) + fail-loud
2 parents 658ab44 + e1d6429 commit 20a3b8f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/release-prep.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ on:
2222
permissions:
2323
contents: write
2424
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
2529

2630
concurrency:
2731
group: release-prep
@@ -121,7 +125,7 @@ jobs:
121125
- name: Ensure release label
122126
env:
123127
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
125129

126130
# State-aware PR handling. `gh pr view` also matches closed PRs, and
127131
# `gh pr edit` silently keeps them closed — which would make a re-run

0 commit comments

Comments
 (0)