From cd4c6208cc3187d158ecfb8af5f70e4530fd1c47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christopher=20M=C3=BChl?= Date: Wed, 4 Mar 2026 14:35:02 +0100 Subject: [PATCH] fix: use if statement instead of continue-on-error for Attic --- docker-build-nix/action.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker-build-nix/action.yaml b/docker-build-nix/action.yaml index a2a91d0..cc0c568 100644 --- a/docker-build-nix/action.yaml +++ b/docker-build-nix/action.yaml @@ -64,7 +64,6 @@ runs: - name: Push build artifacts to Attic cache shell: bash if: env.ATTIC_TOKEN != '' - continue-on-error: true env: ATTIC_TOKEN: ${{ env.ATTIC_TOKEN }} run: | @@ -77,7 +76,9 @@ runs: EOF # Push entire closure to cache (don't fail if this fails) - attic push "${{ inputs.cache-name }}" ./result || echo "Warning: Failed to push to Attic cache, continuing anyway" + if ! attic push "${{ inputs.cache-name }}" ./result; then + echo "Warning: Failed to push to Attic cache, continuing anyway" + fi - name: Load image into Docker shell: bash