diff --git a/.github/workflows/setup-rust-cache/action.yml b/.github/workflows/setup-rust-cache/action.yml index 27ad81d6..1bfde298 100644 --- a/.github/workflows/setup-rust-cache/action.yml +++ b/.github/workflows/setup-rust-cache/action.yml @@ -9,6 +9,7 @@ runs: uses: Swatinem/rust-cache@v2 with: # Only save the cache on the main branch to avoid PRs filling - # up the cache. Further, only save it if we are working on the - # English source (or if no language has been set). - save-if: ${{ github.ref == 'refs/heads/main' && (matrix.language == 'en' || matrix.language == '') }} + # up the cache. + save-if: ${{ github.ref == 'refs/heads/main' }} + # Further, save the cache per language. + key: ${{ matrix.language }}