Skip to content

Commit 6449153

Browse files
tbjersclaude
andcommitted
ci: bump ci.yml's action pin during release prep
The release-prepare workflow updated README action-usage pins but not ci.yml's own two `.../report@vX.Y.Z` references, so this repo's CI kept pinning the report action to a stale version after every release (as just happened: category support shipped in the action, but ci.yml still referenced @v0.3.0, which predates it). Requires workflows: write since the release commit now touches a file under .github/workflows/. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent 0b26f98 commit 6449153

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/release-prepare.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ on:
1717
permissions:
1818
contents: write
1919
pull-requests: write
20+
# Needed because the release commit touches .github/workflows/ci.yml
21+
# (bumping its action-usage pin) — the GitHub API rejects workflow-file
22+
# writes from a token without this permission, even with contents: write.
23+
workflows: write
2024

2125
concurrency:
2226
group: release
@@ -78,10 +82,10 @@ jobs:
7882
(cd "$dir" && npm version "$VERSION" --no-git-tag-version --allow-same-version)
7983
done
8084
81-
- name: Update README action-usage pins
85+
- name: Update action-usage pins
8286
run: |
8387
sed -i -E "s#(\.github/actions/report@v)[0-9]+\.[0-9]+\.[0-9]+#\1${VERSION}#g" \
84-
README.md .github/actions/report/README.md
88+
README.md .github/actions/report/README.md .github/workflows/ci.yml
8589
8690
- name: Create release branch
8791
env:
@@ -100,7 +104,7 @@ jobs:
100104
package.json package-lock.json \
101105
dashboard/package.json dashboard/package-lock.json \
102106
.github/actions/report/package.json .github/actions/report/package-lock.json \
103-
CHANGELOG.md README.md .github/actions/report/README.md
107+
CHANGELOG.md README.md .github/actions/report/README.md .github/workflows/ci.yml
104108
105109
- name: Open release PR
106110
env:

0 commit comments

Comments
 (0)