[ci] Update GitHub Actions to latest major release

Fix deprecation warning that Node20.js will stop working
in June.
This commit is contained in:
Christoph Grüninger
2026-04-26 10:47:32 +02:00
parent 47c1b320a0
commit 42250501e4
3 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -135,7 +135,7 @@ jobs:
find $DIR ! -executable -o -type d ! -path $DIR | xargs rm -rf find $DIR ! -executable -o -type d ! -path $DIR | xargs rm -rf
- name: Upload Binaries - name: Upload Binaries
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
with: with:
name: binaries name: binaries
path: target/debug path: target/debug
@@ -179,7 +179,7 @@ jobs:
# Download # Download
- name: Download target dir - name: Download target dir
uses: actions/download-artifact@v6 uses: actions/download-artifact@v8
with: with:
name: binaries name: binaries
path: target/debug path: target/debug
+9 -9
View File
@@ -44,7 +44,7 @@ jobs:
- name: Cache lintcheck bin - name: Cache lintcheck bin
id: cache-lintcheck-bin id: cache-lintcheck-bin
uses: actions/cache@v4 uses: actions/cache@v5
with: with:
path: target/debug/lintcheck path: target/debug/lintcheck
key: lintcheck-bin-${{ hashfiles('lintcheck/**') }} key: lintcheck-bin-${{ hashfiles('lintcheck/**') }}
@@ -59,7 +59,7 @@ jobs:
- name: Cache results JSON - name: Cache results JSON
id: cache-json id: cache-json
uses: actions/cache@v4 uses: actions/cache@v5
with: with:
path: lintcheck-logs/ci_crates_logs.json path: lintcheck-logs/ci_crates_logs.json
key: ${{ steps.key.outputs.key }} key: ${{ steps.key.outputs.key }}
@@ -69,7 +69,7 @@ jobs:
run: env CLIPPY_CONF_DIR="$PWD/lintcheck/ci-config" ./target/debug/lintcheck --format json --all-lints --crates-toml ./lintcheck/ci_crates.toml run: env CLIPPY_CONF_DIR="$PWD/lintcheck/ci-config" ./target/debug/lintcheck --format json --all-lints --crates-toml ./lintcheck/ci_crates.toml
- name: Upload base JSON - name: Upload base JSON
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
with: with:
name: base name: base
path: lintcheck-logs/ci_crates_logs.json path: lintcheck-logs/ci_crates_logs.json
@@ -87,7 +87,7 @@ jobs:
- name: Cache lintcheck bin - name: Cache lintcheck bin
id: cache-lintcheck-bin id: cache-lintcheck-bin
uses: actions/cache@v4 uses: actions/cache@v5
with: with:
path: target/debug/lintcheck path: target/debug/lintcheck
key: lintcheck-bin-${{ hashfiles('lintcheck/**') }} key: lintcheck-bin-${{ hashfiles('lintcheck/**') }}
@@ -100,7 +100,7 @@ jobs:
run: env CLIPPY_CONF_DIR="$PWD/lintcheck/ci-config" ./target/debug/lintcheck --format json --all-lints --crates-toml ./lintcheck/ci_crates.toml run: env CLIPPY_CONF_DIR="$PWD/lintcheck/ci-config" ./target/debug/lintcheck --format json --all-lints --crates-toml ./lintcheck/ci_crates.toml
- name: Upload head JSON - name: Upload head JSON
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
with: with:
name: head name: head
path: lintcheck-logs/ci_crates_logs.json path: lintcheck-logs/ci_crates_logs.json
@@ -119,14 +119,14 @@ jobs:
persist-credentials: false persist-credentials: false
- name: Restore lintcheck bin - name: Restore lintcheck bin
uses: actions/cache/restore@v4 uses: actions/cache/restore@v5
with: with:
path: target/debug/lintcheck path: target/debug/lintcheck
key: lintcheck-bin-${{ hashfiles('lintcheck/**') }} key: lintcheck-bin-${{ hashfiles('lintcheck/**') }}
fail-on-cache-miss: true fail-on-cache-miss: true
- name: Download JSON - name: Download JSON
uses: actions/download-artifact@v5 uses: actions/download-artifact@v8
- name: Store PR number - name: Store PR number
run: echo ${{ github.event.pull_request.number }} > pr.txt run: echo ${{ github.event.pull_request.number }} > pr.txt
@@ -140,13 +140,13 @@ jobs:
./target/debug/lintcheck diff {base,head}/ci_crates_logs.json --write-summary summary.json > full_diff.md ./target/debug/lintcheck diff {base,head}/ci_crates_logs.json --write-summary summary.json > full_diff.md
- name: Upload full diff - name: Upload full diff
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
with: with:
name: full_diff name: full_diff
path: full_diff.md path: full_diff.md
- name: Upload summary - name: Upload summary
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
with: with:
name: summary name: summary
path: | path: |
+2 -2
View File
@@ -27,7 +27,7 @@ jobs:
if: ${{ github.event.workflow_run.conclusion == 'success' }} if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps: steps:
- name: Download artifact - name: Download artifact
uses: actions/download-artifact@v5 uses: actions/download-artifact@v8
with: with:
name: summary name: summary
path: untrusted path: untrusted
@@ -35,7 +35,7 @@ jobs:
github-token: ${{ github.token }} github-token: ${{ github.token }}
- name: Format comment - name: Format comment
uses: actions/github-script@v8 uses: actions/github-script@v9
with: with:
script: | script: |
const fs = require("fs"); const fs = require("fs");