diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3fcde8011723e..4831c60fc210d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -313,8 +313,8 @@ jobs: uses: actions/cache@v3 with: path: ${{ steps.set-up-homebrew.outputs.gems-path }} - key: ${{ runner.os }}-rubygems${{ matrix.ruby }}-${{ steps.set-up-homebrew.outputs.gems-hash }} - restore-keys: ${{ runner.os }}-rubygems${{ matrix.ruby }}- + key: ${{ matrix.runs-on }}-tests-rubygems${{ matrix.ruby }}-${{ steps.set-up-homebrew.outputs.gems-hash }} + restore-keys: ${{ matrix.runs-on }}-tests-rubygems${{ matrix.ruby }}- - name: Setup Ruby if: matrix.ruby