From bae31853b833e62e8ca61119eb33765ae56ef7e6 Mon Sep 17 00:00:00 2001 From: Sebastian Ullrich Date: Fri, 6 Aug 2021 16:39:45 +0200 Subject: [PATCH] chore: Nix: do not install Cachix if not authenticated --- .github/workflows/nix-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nix-ci.yml b/.github/workflows/nix-ci.yml index ade6edd427..84bee95902 100644 --- a/.github/workflows/nix-ci.yml +++ b/.github/workflows/nix-ci.yml @@ -66,7 +66,7 @@ jobs: echo 'max_size = 50M' > /nix/var/cache/ccache/ccache.conf # install & use Cachix manually since `cachix-action` pushes *all* derivations (incl. `$mod-deps`, stage 2&3, etc.) - nix-env -iA cachix -f https://cachix.org/api/v1/install + [ -z '${{ secrets.CACHIX_AUTH_TOKEN }}' ] || nix-env -iA cachix -f https://cachix.org/api/v1/install - name: Setup CCache Cache uses: actions/cache@v2 with: