Skip to content

Commit c3fbbb0

Browse files
authored
chore: fix update-nodejs-versions workflow (#3904)
A robot told me this would fix [these issues](https://github.com/bazel-contrib/rules_nodejs/actions/runs/22607491947/job/65502627549#step:6:41) because: Two changes: - actions/setup-node@v2 → v4 (v2 is very old) - peter-evans/create-pull-request@v3 → v7 — v3 sets the Authorization header directly, which conflicts with actions/checkout@v6's new includeIf-based credential injection, causing the "Duplicate header" 400 error
1 parent 941388d commit c3fbbb0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/update-nodejs-versions.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ jobs:
2424
fetch-depth: 0
2525

2626
- name: Setup Node.js
27-
uses: actions/setup-node@v2
27+
uses: actions/setup-node@v4
2828
with:
29-
node-version: "14.x"
29+
node-version: "lts/*"
3030
- uses: pnpm/action-setup@v4
3131
- run: npm run update-nodejs-versions
3232

3333
- name: Create Pull Request
34-
uses: peter-evans/create-pull-request@v3
34+
uses: peter-evans/create-pull-request@v7
3535
with:
3636
token: ${{ secrets.PAT }}
3737
commit-message: Update Node.js Versions

0 commit comments

Comments
 (0)