From 1d9de93eaa991bc0f7ad097b648b25978348571b Mon Sep 17 00:00:00 2001 From: ryoppippi <1560508+ryoppippi@users.noreply.github.com> Date: Mon, 5 Jan 2026 14:12:33 +0000 Subject: [PATCH] ci(nix): include all Nix files and lockfiles in cache key hash Add hashFiles for all *.nix files, flake.lock, and pnpm-lock.yaml to the Nix store cache key. This ensures the cache is properly invalidated when any Nix configuration or dependency lockfiles change. --- .github/actions/setup-nix/action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/setup-nix/action.yaml b/.github/actions/setup-nix/action.yaml index 93844bf..5c37602 100644 --- a/.github/actions/setup-nix/action.yaml +++ b/.github/actions/setup-nix/action.yaml @@ -11,7 +11,7 @@ runs: - name: Cache Nix store uses: nix-community/cache-nix-action@b426b118b6dc86d6952988d396aa7c6b09776d08 # v7.0.0 with: - primary-key: nix-${{ runner.os }} + primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', 'flake.lock', 'pnpm-lock.yaml') }} - name: Load Nix development environment shell: bash