From b446b6572e01762f5d7b185cd69d62bf96efc8bf Mon Sep 17 00:00:00 2001 From: Tobias Happ Date: Tue, 14 Dec 2021 21:45:55 +0100 Subject: [PATCH] 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. --- .github/workflows/fakedroid-odt.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/fakedroid-odt.yml b/.github/workflows/fakedroid-odt.yml index 15a54e0..40dbefd 100644 --- a/.github/workflows/fakedroid-odt.yml +++ b/.github/workflows/fakedroid-odt.yml @@ -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'