Skip to content

Commit 1b96e8f

Browse files
committed
Give the release note the stop step's permission, and the release's call of CI the read it asks for
1 parent 73e8655 commit 1b96e8f

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,8 +1067,8 @@ jobs:
10671067
# CHANGELOG.md, other than the release's own, one with no note, and one that deprecates part of
10681068
# the API without naming it in its note. It runs last, after every other job, and reads the
10691069
# description then, so a description edited while the tests run is the one checked; one edited
1070-
# after the run re-runs it (release-note-edited.yml). Running last, its stop mark (ci-stop.yml)
1071-
# has nothing left to cancel. A pull request only: a merge group's pull requests each passed it,
1070+
# after the run re-runs it (release-note-edited.yml). Running last, its stop step
1071+
# (.github/actions/stop-on-failure) has nothing left to cancel. A pull request only: a merge group's pull requests each passed it,
10721072
# and nothing else has a description.
10731073
release-note:
10741074
name: release note
@@ -1080,6 +1080,8 @@ jobs:
10801080
contents: read
10811081
# To read the pull request's description and files.
10821082
pull-requests: read
1083+
# To cancel this run at its first failure (.github/actions/stop-on-failure).
1084+
actions: write
10831085
steps:
10841086
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
10851087
with:
@@ -1102,7 +1104,7 @@ jobs:
11021104
env:
11031105
GH_TOKEN: ${{ github.token }}
11041106
run: bun scripts/release-note-check.ts
1105-
# On a failure, stops the run's other jobs at once (.github/workflows/ci-stop.yml).
1107+
# On a failure, cancels the run at once (.github/actions/stop-on-failure).
11061108
- if: failure()
11071109
uses: $/.github/actions/stop-on-failure
11081110

‎.github/workflows/publish-release.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,9 @@ jobs:
330330
# their run at its first failure (.github/actions/stop-on-failure). On this push event `changes`
331331
# reads nothing and runs every check, and nothing is cancelled.
332332
actions: write
333+
# CI's `release note` asks for it, to read a pull request's description. It runs on a pull
334+
# request only, so on this push it is skipped and reads nothing.
335+
pull-requests: read
333336

334337
# The images, built once from the commit that passed the checks above, and tagged with this
335338
# release's version and `latest`, with the server, computer and supervisor pinned at the tag this

0 commit comments

Comments
 (0)