From 45abe7802022ff0053924fee359872916cb4d380 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 16 Feb 2024 17:11:51 +0000 Subject: [PATCH] Update actions/cache action to v4 --- .github/actions/yarn-nm-install/action.yml | 8 ++++---- .github/workflows/ci-templates.yml | 2 +- .github/workflows/lint-typecheck.yml | 2 +- .github/workflows/registry.yml | 2 +- .github/workflows/sync-templates.yml | 2 +- .github/workflows/test.yml | 2 +- .../plate-playground-template/.github/workflows/build.yml | 2 +- templates/plate-template/.github/workflows/build.yml | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/actions/yarn-nm-install/action.yml b/.github/actions/yarn-nm-install/action.yml index 3af601d170..4195138780 100644 --- a/.github/actions/yarn-nm-install/action.yml +++ b/.github/actions/yarn-nm-install/action.yml @@ -78,7 +78,7 @@ runs: echo "NPM_GLOBAL_CACHE_FOLDER=$(npm config get cache)" >> $GITHUB_OUTPUT - name: ♻️ Restore yarn cache - uses: actions/cache@v3 + uses: actions/cache@v4 id: yarn-download-cache with: path: ${{ steps.yarn-config.outputs.CACHE_FOLDER }} @@ -89,7 +89,7 @@ runs: - name: ♻️ Restore node_modules if: inputs.cache-node-modules == 'true' id: yarn-nm-cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ inputs.cwd }}/**/node_modules key: yarn-nm-cache-${{ inputs.cache-prefix }}-${{ runner.os }}-${{ steps.yarn-config.outputs.CURRENT_NODE_VERSION }}-${{ steps.yarn-config.outputs.CURRENT_BRANCH }}-${{ hashFiles(format('{0}/yarn.lock', inputs.cwd), format('{0}/.yarnrc.yml', inputs.cwd)) }} @@ -97,7 +97,7 @@ runs: - name: ♻️ Restore global npm cache folder if: inputs.cache-npm-cache == 'true' id: npm-global-cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.yarn-config.outputs.NPM_GLOBAL_CACHE_FOLDER }} key: npm-global-cache-${{ inputs.cache-prefix }}-${{ runner.os }}-${{ steps.yarn-config.outputs.CURRENT_NODE_VERSION }}-${{ hashFiles(format('{0}/yarn.lock', inputs.cwd), format('{0}/.yarnrc.yml', inputs.cwd)) }} @@ -105,7 +105,7 @@ runs: - name: ♻️ Restore yarn install state if: inputs.cache-install-state == 'true' && inputs.cache-node-modules == 'true' id: yarn-install-state-cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ inputs.cwd }}/.yarn/ci-cache key: yarn-install-state-cache-${{ inputs.cache-prefix }}-${{ runner.os }}-${{ steps.yarn-config.outputs.CURRENT_NODE_VERSION }}-${{ steps.yarn-config.outputs.CURRENT_BRANCH }}-${{ hashFiles(format('{0}/yarn.lock', inputs.cwd), format('{0}/.yarnrc.yml', inputs.cwd)) }} diff --git a/.github/workflows/ci-templates.yml b/.github/workflows/ci-templates.yml index 36bf05985f..70776c059a 100644 --- a/.github/workflows/ci-templates.yml +++ b/.github/workflows/ci-templates.yml @@ -48,7 +48,7 @@ jobs: id: pnpm-cache run: | echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT - - uses: actions/cache@v3 + - uses: actions/cache@v4 name: ♻️ Setup pnpm cache with: path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} diff --git a/.github/workflows/lint-typecheck.yml b/.github/workflows/lint-typecheck.yml index 33938c715e..382fe3d7cc 100644 --- a/.github/workflows/lint-typecheck.yml +++ b/.github/workflows/lint-typecheck.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/yarn-nm-install - name: ♻️ Restore packages cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ${{ github.workspace }}/.cache diff --git a/.github/workflows/registry.yml b/.github/workflows/registry.yml index ed697960ec..3ea60d0ed5 100644 --- a/.github/workflows/registry.yml +++ b/.github/workflows/registry.yml @@ -29,7 +29,7 @@ jobs: uses: ./.github/actions/yarn-nm-install - name: ♻️ Restore packages cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ${{ github.workspace }}/.cache diff --git a/.github/workflows/sync-templates.yml b/.github/workflows/sync-templates.yml index e171c09033..580c744940 100644 --- a/.github/workflows/sync-templates.yml +++ b/.github/workflows/sync-templates.yml @@ -45,7 +45,7 @@ jobs: run: | echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT - - uses: actions/cache@v3 + - uses: actions/cache@v4 name: Setup pnpm cache with: path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index acd1c0334c..4c9902f710 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -61,7 +61,7 @@ jobs: uses: ./.github/actions/yarn-nm-install - name: ♻️ Restore packages cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ${{ github.workspace }}/.cache diff --git a/templates/plate-playground-template/.github/workflows/build.yml b/templates/plate-playground-template/.github/workflows/build.yml index 93bdf79243..60e2f37eb4 100644 --- a/templates/plate-playground-template/.github/workflows/build.yml +++ b/templates/plate-playground-template/.github/workflows/build.yml @@ -38,7 +38,7 @@ jobs: id: pnpm-cache run: | echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT - - uses: actions/cache@v3 + - uses: actions/cache@v4 name: Setup pnpm cache with: path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} diff --git a/templates/plate-template/.github/workflows/build.yml b/templates/plate-template/.github/workflows/build.yml index 93bdf79243..60e2f37eb4 100644 --- a/templates/plate-template/.github/workflows/build.yml +++ b/templates/plate-template/.github/workflows/build.yml @@ -38,7 +38,7 @@ jobs: id: pnpm-cache run: | echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT - - uses: actions/cache@v3 + - uses: actions/cache@v4 name: Setup pnpm cache with: path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}