From 296462a33b10337fb385f493d7cfa244e9006558 Mon Sep 17 00:00:00 2001 From: Joel Posti Date: Fri, 26 Jul 2024 15:23:01 +0300 Subject: [PATCH] Updated actions/cache@v3 and actions/checkout@v3 to actions/cache@v4 and actions/checkout@v4 in GitHub Actions workflows. --- .github/workflows/check-and-test-code.yml | 12 ++++++------ .github/workflows/prepare-release.yml | 2 +- .github/workflows/release.yml | 16 ++++++++-------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/check-and-test-code.yml b/.github/workflows/check-and-test-code.yml index 7af7785..bd4d8a6 100644 --- a/.github/workflows/check-and-test-code.yml +++ b/.github/workflows/check-and-test-code.yml @@ -12,8 +12,8 @@ jobs: image: response200/node-build:latest options: --user root:root steps: - - uses: actions/checkout@v3 - - uses: actions/cache@v3 + - uses: actions/checkout@v4 + - uses: actions/cache@v4 with: path: ~/.npm key: npm-dependencies-${{ hashFiles('**/package-lock.json') }} @@ -27,8 +27,8 @@ jobs: options: --user root:root needs: lint # Run after lint so that lint job has an opportunity to fill npm cache. steps: - - uses: actions/checkout@v3 - - uses: actions/cache@v3 + - uses: actions/checkout@v4 + - uses: actions/cache@v4 with: path: ~/.npm key: npm-dependencies-${{ hashFiles('**/package-lock.json') }} @@ -42,8 +42,8 @@ jobs: options: --user root:root needs: lint # Run after lint so that lint job has an opportunity to fill npm cache. steps: - - uses: actions/checkout@v3 - - uses: actions/cache@v3 + - uses: actions/checkout@v4 + - uses: actions/cache@v4 with: path: ~/.npm key: npm-dependencies-${{ hashFiles('**/package-lock.json') }} diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index 75484fa..fd298fc 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -19,7 +19,7 @@ jobs: permissions: contents: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.event.inputs.rev }} # scripts/ci/prepare-release.sh depends on git tags being fetched. diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 10f33b4..0b8b5f4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: image: response200/node-build:latest options: --user root:root steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.event.inputs.rev }} - run: scripts/ci/audit.sh @@ -26,10 +26,10 @@ jobs: options: --user root:root needs: audit steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.event.inputs.rev }} - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/.npm key: npm-dependencies-${{ hashFiles('**/package-lock.json') }} @@ -43,10 +43,10 @@ jobs: options: --user root:root needs: lint # Run after lint so that audit job has an opportunity to fill npm cache. steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.event.inputs.rev }} - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/.npm key: npm-dependencies-${{ hashFiles('**/package-lock.json') }} @@ -60,10 +60,10 @@ jobs: options: --user root:root needs: lint # Run after lint so that audit job has an opportunity to fill npm cache. steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.event.inputs.rev }} - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/.npm key: npm-dependencies-${{ hashFiles('**/package-lock.json') }} @@ -79,7 +79,7 @@ jobs: permissions: contents: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.event.inputs.rev }} # scripts/ci/release.sh depends on all git branches being fetched.