Skip to content

Commit

Permalink
ci: make the flake workflow work for 3rd-party
Browse files Browse the repository at this point in the history
`cachix push` doesn't work if the CACHIX_AUTH_TOKEN is missing. And a
third-party sending a PR would trigger the CI without any auth token.
  • Loading branch information
zimbatm committed Feb 1, 2022
1 parent 11ba083 commit 6ea230f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,7 @@ jobs:
- run: nix flake check
- run: nix develop -c echo OK
- name: Run nix flake archive
run: |
set -euo pipefail
nix flake archive --json | \
jq -r '.path,(.inputs|to_entries[].value.path)' | \
cachix push numtide
run: nix flake archive
docs:
strategy:
matrix:
Expand Down

0 comments on commit 6ea230f

Please sign in to comment.