Skip to content

Commit a6aa603

Browse files
author
Jacob Lamb
committed
Update GitHub Actions to latest major versions
Bump actions/checkout to v5, withastro/action to v4, actions/setup-node to v6, and actions/github-script to v8 in workflow files and documentation. This ensures compatibility with the latest features and security updates.
1 parent f9618fc commit a6aa603

7 files changed

Lines changed: 13 additions & 13 deletions

File tree

‎.github/workflows/check-links.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
linkChecker:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v5
1414

1515
- name: Build site
16-
uses: withastro/action@v3
16+
uses: withastro/action@v4
1717
with:
1818
package-manager: pnpm@latest
1919

‎.github/workflows/check-pr-links.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ jobs:
2121
version: latest
2222

2323
- name: Setup Node.js
24-
uses: actions/setup-node@v4
24+
uses: actions/setup-node@v6
2525
with:
2626
node-version: 20
2727
cache: 'pnpm'
2828

2929
- name: Clone repository
30-
uses: actions/checkout@v4
30+
uses: actions/checkout@v5
3131
with:
3232
fetch-depth: 0
3333
ref: ${{github.event.pull_request.head.ref}}
@@ -37,7 +37,7 @@ jobs:
3737
run: git checkout ${{github.event.pull_request.base.ref}}
3838

3939
- name: Build site (base branch)
40-
uses: withastro/action@v3
40+
uses: withastro/action@v4
4141
with:
4242
package-manager: pnpm@latest
4343

@@ -63,7 +63,7 @@ jobs:
6363
run: git stash pop || true
6464

6565
- name: Build site (feature branch)
66-
uses: withastro/action@v3
66+
uses: withastro/action@v4
6767
with:
6868
package-manager: pnpm@latest
6969

@@ -91,7 +91,7 @@ jobs:
9191

9292
- name: Create PR comment on failure
9393
if: steps.lychee.exit_code != 0
94-
uses: actions/github-script@v7
94+
uses: actions/github-script@v8
9595
with:
9696
script: |
9797
const fs = require('fs');

‎.github/workflows/deploy.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Checkout your repository using git
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@v5
2121
- name: Install, build, and upload your site
22-
uses: withastro/action@v3
22+
uses: withastro/action@v4
2323
with:
2424
package-manager: pnpm@latest
2525

‎src/content/docs/github_action_recipes/add-pr-comment.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
check-links:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v5
2020
- uses: lycheeverse/lychee-action@v2
2121
- name: Comment Broken Links
2222
uses: marocchino/sticky-pull-request-comment@v2

‎src/content/docs/github_action_recipes/caching.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
restore-keys: cache-lychee-
3333

3434
# check URLs with Lychee
35-
- uses: actions/checkout@v4
35+
- uses: actions/checkout@v5
3636

3737
- name: Lychee URL checker
3838
uses: lycheeverse/lychee-action@v2

‎src/content/docs/github_action_recipes/check-repository.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Manual trigger via workflow_dispatch
1111
Repository dispatch events
1212
Automated schedule (runs daily at 18:00 UTC)
1313
The workflow executes the following steps:
14-
Checks out the repository using actions/checkout@v4
14+
Checks out the repository using actions/checkout@v5
1515
Runs the Lychee link checker (lycheeverse/lychee-action@v2) with fail: false to prevent workflow failure
1616
If any broken links are detected (exit code != 0), creates a new GitHub issue using peter-evans/create-issue-from-file@v5
1717
The issue contains the detailed report from ./lychee/out.md

‎src/content/docs/recipes/root-dir.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
check-links:
9191
runs-on: ubuntu-latest
9292
steps:
93-
- uses: actions/checkout@v4
93+
- uses: actions/checkout@v5
9494
- uses: lycheeverse/lychee-action@v2
9595
with:
9696
args: >-

0 commit comments

Comments
 (0)