Skip to content

Commit

Permalink
ci: Use Cachix if PR is not from a fork
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzleutgeb committed Apr 12, 2024
1 parent 2e8a881 commit 077f3e1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ jobs:
with:
extra-conf: |
experimental-features = no-url-literals
- uses: cachix/cachix-action@v10
if: ${{ !github.event.pull_request.head.repo.fork }}
with:
name: ngi
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- uses: DeterminateSystems/magic-nix-cache-action@main
if: ${{ github.event.pull_request.head.repo.fork }}
with:
upstream-cache: https://ngi.cachix.org/
- id: flake-show-diff
Expand Down

0 comments on commit 077f3e1

Please sign in to comment.