ci: do not attempt to push to cachix on PR builds

Secrets are not available when triggered by a PR. Therefore,
CACHIX_SIGNING_KEY is not defined and cachix will always fail.
This commit is contained in:
Tobias Happ 2021-12-14 21:45:55 +01:00
parent 856d931972
commit b446b6572e

View file

@ -30,5 +30,5 @@ jobs:
tests/fakedroid.sh nix-on-droid on-device-test
- name: upload
if: always()
if: always() && github.event_name != 'pull_request'
run: tests/fakedroid.sh nix-shell -p cachix --run 'nix path-info --all | cachix push nix-on-droid'