fix: use if statement instead of continue-on-error for Attic

This commit is contained in:
Christopher Mühl 2026-03-04 14:35:02 +01:00
parent 6534bcfe08
commit cd4c6208cc
No known key found for this signature in database
GPG key ID: 925AC7D69955293F

View file

@ -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