diff --git a/.github/actions/setup-nix/action.yaml b/.github/actions/setup-nix/action.yaml index 9bdd094afd..6c4578359e 100644 --- a/.github/actions/setup-nix/action.yaml +++ b/.github/actions/setup-nix/action.yaml @@ -18,10 +18,10 @@ runs: with: nix_version: '2.13.6' - name: Restore and cache Nix store - uses: nix-community/cache-nix-action@v4.0.3 + uses: nix-community/cache-nix-action@v5.0.1 with: - key: cache-nix-${{ runner.os }}-id-${{ inputs.cache-id }}-${{ hashFiles('nix/**/*.nix', '.github/actions/setup-nix/*') }} - restore-keys: | + primary-key: cache-nix-${{ runner.os }}-id-${{ inputs.cache-id }}-${{ hashFiles('nix/**/*.nix', '.github/actions/setup-nix/*') }} + restore-prefixes-first-match: | cache-nix-${{ runner.os }}-common- - uses: cachix/cachix-action@v14 with: