Upgrade GitHub Actions for Node 24 compatibility (#392)
Signed-off-by: Salman Muin Kayser Chishti <13schishti@gmail.com>
This commit is contained in:
parent
93b619cae6
commit
a4fda18caa
1 changed files with 24 additions and 24 deletions
10
.github/workflows/update-snapshots.yml
vendored
10
.github/workflows/update-snapshots.yml
vendored
|
|
@ -25,7 +25,7 @@ jobs:
|
|||
- name: Get PR branch
|
||||
if: github.event_name == 'issue_comment'
|
||||
id: pr
|
||||
uses: actions/github-script@v7
|
||||
uses: actions/github-script@v8
|
||||
with:
|
||||
script: |
|
||||
const pr = await github.rest.pulls.get({
|
||||
|
|
@ -38,7 +38,7 @@ jobs:
|
|||
|
||||
- name: Add reaction to comment
|
||||
if: github.event_name == 'issue_comment'
|
||||
uses: actions/github-script@v7
|
||||
uses: actions/github-script@v8
|
||||
with:
|
||||
script: |
|
||||
await github.rest.reactions.createForIssueComment({
|
||||
|
|
@ -48,7 +48,7 @@ jobs:
|
|||
content: 'rocket'
|
||||
});
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
ref: ${{ github.event.inputs.branch || steps.pr.outputs.ref || github.ref }}
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
@ -57,7 +57,7 @@ jobs:
|
|||
with:
|
||||
bun-version: latest
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: "20"
|
||||
|
||||
|
|
@ -88,7 +88,7 @@ jobs:
|
|||
|
||||
- name: Comment on PR
|
||||
if: github.event_name == 'issue_comment'
|
||||
uses: actions/github-script@v7
|
||||
uses: actions/github-script@v8
|
||||
with:
|
||||
script: |
|
||||
const changed = '${{ steps.commit.outputs.changed }}' === 'true';
|
||||
|
|
|
|||
Loading…
Reference in a new issue