Skip to content

Commit e62e961

Browse files
committed
[skip ci] Bump actions/cache to v5 and add workflow check
Update desktop-nightly workflow to use actions/cache@v5 (targets Node 24). Update the workflow validation script to require the new action and to fail if actions/cache@v4 is still present, preventing use of the deprecated Node.js 20 runtime.
1 parent 760df95 commit e62e961

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/desktop-nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
uses: dtolnay/rust-toolchain@stable
6161

6262
- name: Restore Rust build cache
63-
uses: actions/cache@v4
63+
uses: actions/cache@v5
6464
with:
6565
path: |
6666
~/.cargo/registry

scripts/check-desktop-nightly-workflow.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const requiredSnippets = [
1515
["manual trigger", "workflow_dispatch:"],
1616
["scheduled trigger", "schedule:"],
1717
["release write permission", "contents: write"],
18+
["Node 24 cache action", "actions/cache@v5"],
1819
["Windows runner", "windows-latest"],
1920
["macOS Apple Silicon runner", "macos-15"],
2021
["macOS arm64 guard", 'test "$(uname -m)" = "arm64"'],
@@ -36,6 +37,10 @@ for (const [label, snippet] of requiredSnippets) {
3637
}
3738
}
3839

40+
if (workflow.includes("actions/cache@v4")) {
41+
fail("Desktop nightly workflow still uses actions/cache@v4, which targets the deprecated Node.js 20 runtime");
42+
}
43+
3944
console.log("Checked desktop nightly workflow");
4045

4146
function fail(message) {

0 commit comments

Comments
 (0)