From 4a7f1d5332cc72057d5e8080edebfcdf652e642e Mon Sep 17 00:00:00 2001 From: Lucille Hua Date: Fri, 2 Feb 2024 10:14:08 -0800 Subject: [PATCH] Upgrade action cache version (#30) TSIA. Addressing the following warning: ``` Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache/restore@v3, [...] For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/. ``` --- action.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index d434891..9ccdcff 100644 --- a/action.yml +++ b/action.yml @@ -53,7 +53,7 @@ runs: - name: Mount devbox cli cache if: inputs.refresh-cli == 'false' id: cache-devbox-cli - uses: actions/cache/restore@v3 + uses: actions/cache/restore@v4 with: path: /usr/local/bin/devbox key: ${{ runner.os }}-devbox-cli-${{ env.latest_version }} @@ -96,7 +96,7 @@ runs: - name: Save devbox cli cache if: inputs.refresh-cli == 'false' && steps.cache-devbox-cli.outputs.cache-hit != 'true' - uses: actions/cache/save@v3 + uses: actions/cache/save@v4 with: path: /usr/local/bin/devbox key: ${{ runner.os }}-devbox-cli-${{ env.latest_version }} @@ -135,7 +135,7 @@ runs: - name: Mount nix store cache id: cache-devbox-nix-store if: inputs.enable-cache == 'true' - uses: actions/cache/restore@v3 + uses: actions/cache/restore@v4 with: path: | ~/.cache/devbox @@ -154,7 +154,7 @@ runs: - name: Save nix store cache if: inputs.enable-cache == 'true' && steps.cache-devbox-nix-store.outputs.cache-hit != 'true' - uses: actions/cache/save@v3 + uses: actions/cache/save@v4 with: path: | ~/.cache/devbox