From b71497a692fceee0040d4ca7a8dbcc4ba98725af Mon Sep 17 00:00:00 2001 From: Kevin Cooper Date: Thu, 9 Jan 2025 15:29:59 -0500 Subject: [PATCH] upgrade to github actions/cache@v4 --- .github/workflows/tests.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 62ac9e5296..11d1bc65cc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -31,14 +31,14 @@ jobs: uses: ruby/setup-ruby@v1 - name: Ruby gem cache id: cache-gems - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: vendor/bundle - key: ${{ runner.os }}-gems-v2-${{ hashFiles('**/Gemfile.lock') }} + key: ${{ runner.os }}-gems-nonce3-${{ hashFiles('**/Gemfile.lock') }} # Restore keys will be matched if the main key fails. This may restore older gems to the # dir but we don't care because bundle install will check the gems anyway. restore-keys: | - ${{ runner.os }}-gems-v2- + ${{ runner.os }}-gems-nonce3- - name: Set bundle path run: bundle config path vendor/bundle - name: Install gems @@ -52,12 +52,12 @@ jobs: run: echo "::set-output name=dir::$(yarn cache dir)" - name: JS package cache id: cache-packages - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.yarn-cache.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + key: ${{ runner.os }}-yarn-nonce2-${{ hashFiles('**/yarn.lock') }} restore-keys: | - ${{ runner.os }}-yarn- + ${{ runner.os }}-yarn-nonce2- - name: Install packages run: | yarn install --pure-lockfile