From 1d8da6388c118a29fe5317c61bd4f229606d4cb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Fri, 2 Feb 2024 15:14:13 +0100 Subject: [PATCH] fix(ci): Disable nix cache on pull requests --- .github/workflows/check.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index b6a2717..d5dcf2c 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -15,7 +15,8 @@ jobs: steps: - uses: actions/checkout@v4 - uses: DeterminateSystems/nix-installer-action@v9 - - uses: DeterminateSystems/magic-nix-cache-action@v3 + - if: ${{ github.event_name != 'pull_request' }} # Do not cache pull requests + uses: DeterminateSystems/magic-nix-cache-action@v3 - name: Run `nix flake check` run: nix flake check lockfile: