From d49219107cff579d3f31bd5c5a51e8cea2b21368 Mon Sep 17 00:00:00 2001 From: Ivan Petkov Date: Tue, 3 Sep 2024 17:47:04 -0700 Subject: [PATCH] ci: enable caching on flake update branches --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1ee35ccb..a3b648fd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -46,7 +46,7 @@ jobs: - uses: cachix/cachix-action@v15 with: name: crane - authToken: ${{ github.ref == 'refs/heads/master' && secrets.CACHIX_AUTH_TOKEN || '' }} + authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} - name: flake checks run: nix develop --accept-flake-config --command ./ci/fast-flake-check.sh . ${{ matrix.nixpkgs-override }} - name: extra tests @@ -82,7 +82,7 @@ jobs: - uses: cachix/cachix-action@v15 with: name: crane - authToken: ${{ github.ref == 'refs/heads/master' && secrets.CACHIX_AUTH_TOKEN || '' }} + authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} - name: validate examples # Nix won't write a lockfile when --override-input is used (which is good because it will # complain that the lock file is .gitignored), but nix-eval-jobs doesn't, so we'll have to @@ -106,7 +106,7 @@ jobs: - uses: cachix/cachix-action@v15 with: name: crane - authToken: ${{ github.ref == 'refs/heads/master' && secrets.CACHIX_AUTH_TOKEN || '' }} + authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} - name: validate examples # Nix won't write a lockfile when --override-input is used (which is good because it will # complain that the lock file is .gitignored), but nix-eval-jobs doesn't, so we'll have to