We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df3b87a commit 894e77fCopy full SHA for 894e77f
.github/workflows/release.yaml
@@ -223,8 +223,11 @@ jobs:
223
chainloop attestation push --attestation-id ${{ needs.init_attestation.outputs.attestation_id }}
224
attestation_sha=$(chainloop wf run describe --id ${{ needs.init_attestation.outputs.attestation_id }} -o json | jq -r '.attestation.digest')
225
# check that the command succeeded
226
- [ -n "$attestation_sha" ] || exit 1
227
- echo "attestation_sha=$attestation_sha" >> $GITHUB_OUTPUT
+ if [ -n "$attestation_sha" ]; then
+ echo "attestation_sha=$attestation_sha" >> $GITHUB_OUTPUT
228
+ else
229
+ exit 1
230
+ fi
231
232
- name: Mark attestation as failed
233
if: ${{ failure() }}
0 commit comments