From c2f0f81b262d5d10e27bb200fadaf60728d6c6a3 Mon Sep 17 00:00:00 2001 From: Leonid Makarov Date: Mon, 12 Feb 2024 04:35:59 -0800 Subject: [PATCH] Switch to actions/cache@v4 Addresses the warning when using bats-action: ``` Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/. ``` --- action.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/action.yaml b/action.yaml index 0a8ca5f..b104929 100644 --- a/action.yaml +++ b/action.yaml @@ -103,7 +103,7 @@ runs: steps: # This action would be much easier if only matrix steps will be supported in a composite action - name: "Set cache for Bats" - uses: actions/cache@v3 + uses: actions/cache@v4 if: inputs.bats-install == 'true' id: bats-cache with: @@ -163,7 +163,7 @@ runs: rm -rf ${TEMPDIR} || exit 0 - name: "Set cache for Bats-support" - uses: actions/cache@v3 + uses: actions/cache@v4 if: inputs.support-install == 'true' id: support-cache with: @@ -196,7 +196,7 @@ runs: [[ "${{ inputs.support-clean }}" = "true" ]] && rm -rf ${TEMPDIR} || exit 0 - name: "Set cache for Bats-assert" - uses: actions/cache@v3 + uses: actions/cache@v4 if: inputs.assert-install == 'true' id: assert-cache with: @@ -229,7 +229,7 @@ runs: [[ "${{ inputs.assert-clean }}" = "true" ]] && rm -rf ${TEMPDIR} || exit 0 - name: "Set cache for Bats-detik" - uses: actions/cache@v3 + uses: actions/cache@v4 if: inputs.detik-install == 'true' id: detik-cache with: @@ -261,7 +261,7 @@ runs: [[ "${{ inputs.detik-clean }}" = "true" ]] && rm -rf ${TEMPDIR} || exit 0 - name: "Set cache for Bats-file" - uses: actions/cache@v3 + uses: actions/cache@v4 if: inputs.file-install == 'true' id: file-cache with: