Skip to content

Commit

Permalink
Still use cachix but only *push* on master
Browse files Browse the repository at this point in the history
  • Loading branch information
ipetkov committed Oct 14, 2023
1 parent 7a0c584 commit af1645f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,9 @@ jobs:
with:
install_url: ${{ matrix.install_url }}
- uses: cachix/cachix-action@v12
if: github.ref == 'refs/heads/master'
with:
name: crane
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
authToken: ${{ github.ref == 'refs/heads/master' && secrets.CACHIX_AUTH_TOKEN }}
- name: flake checks
run: nix flake check --accept-flake-config --keep-going --print-build-logs ${{ matrix.nixpkgs-override }}
- name: extra tests
Expand Down Expand Up @@ -77,10 +76,9 @@ jobs:
install_url: ${{ matrix.install_url }}
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: cachix/cachix-action@v12
if: github.ref == 'refs/heads/master'
with:
name: crane
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
authToken: ${{ github.ref == 'refs/heads/master' && secrets.CACHIX_AUTH_TOKEN }}
- name: validate examples
run: |
for f in $(find examples -maxdepth 1 -mindepth 1 -type d ${{ matrix.filter }}); do
Expand Down

0 comments on commit af1645f

Please sign in to comment.