From d81fea0b7b5952b3582ca39d21c78c00e049628d Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 7 May 2020 17:45:05 +0100 Subject: [PATCH] workflows/tests: tweak caching (#54369) Avoid setup.rb being incorrectly cached. --- .github/workflows/tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 385a25e17c5..30dac5d583c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -39,7 +39,7 @@ jobs: echo "::add-path::$HOMEBREW_PREFIX/bin" fi - GEMS_PATH="$HOMEBREW_REPOSITORY/Library/Homebrew/vendor/bundle/" + GEMS_PATH="$HOMEBREW_REPOSITORY/Library/Homebrew/vendor/bundle/ruby/" echo "::set-output name=gems-path::$GEMS_PATH" GEMS_HASH=$(shasum -a 256 "$HOMEBREW_REPOSITORY/Library/Homebrew/Gemfile.lock" | cut -f1 -d' ') echo "::set-output name=gems-hash::$GEMS_HASH" @@ -67,8 +67,8 @@ jobs: uses: actions/cache@v1 with: path: ${{ steps.set-up-homebrew.outputs.gems-path }} - key: ${{ runner.os }}-gems-${{ steps.set-up-homebrew.outputs.gems-hash }} - restore-keys: ${{ runner.os }}-gems- + key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }} + restore-keys: ${{ runner.os }}-rubygems- - name: Install Bundler RubyGems if: steps.cache.outputs.cache-hit != 'true'