From e305e7ef79cedc63740dd84edad1383d05447490 Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Sat, 26 Oct 2024 12:49:18 -0600 Subject: [PATCH] .github: Fix CI cache push condition $ATTIC_TOKEN is not available after setup. --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f9a62a7..dae2ee5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -67,7 +67,7 @@ jobs: - name: Push build artifacts run: | export PATH=$HOME/.nix-profile/bin:$PATH # FIXME - if [ -n "$ATTIC_TOKEN" ]; then + if [ -n "$ATTIC_CACHE" ]; then nix build --no-link --print-out-paths -L \ .#internalMatrix."$system".\"${{ matrix.nix }}\".attic-tests \ .#internalMatrix."$system".\"${{ matrix.nix }}\".cargoArtifacts \ @@ -152,7 +152,7 @@ jobs: - name: Push build artifacts run: | export PATH=$HOME/.nix-profile/bin:$PATH # FIXME - if [ -n "$ATTIC_TOKEN" ]; then + if [ -n "$ATTIC_CACHE" ]; then nix build --no-link --print-out-paths -L \ .#attic-server-image \ .#attic-server-image-aarch64 \