Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1dda311

Browse files
committed
Key the Nix store on the workflow file
This allows us to address issues with caching within the workflow file.
1 parent 750e8be commit 1dda311

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ jobs:
2929
uses: actions/cache@v4
3030
id: cache
3131
with:
32-
path: /nix/store
33-
key: ${{ runner.os }}-${{ hashFiles('tooling/**') }}
32+
path: ${{ runner.temp }}/nix
33+
key: ${{ runner.os }}-${{ hashFiles('tooling/**') }}-${{ hashFiles('.github/workflows/codeql.yml')}}
3434

3535
- name: Prepare Nix Store
3636
if: steps.cache.outputs.cache-hit != 'true'

0 commit comments

Comments
 (0)