fix(ci): Disable nix cache on pull requests

This commit is contained in:
Jalil David Salamé Messina 2024-02-02 15:14:13 +01:00
parent b7ac9c9c55
commit 1d8da6388c
Signed by: jalil
GPG key ID: F016B9E770737A0B

View file

@ -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: