Skip to content

Commit 894e77f

Browse files
authored
fix(ci): Modify condition that assigns attestations hash (#1964)
Signed-off-by: Javier Rodriguez <javier@chainloop.dev>
1 parent df3b87a commit 894e77f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/release.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,11 @@ jobs:
223223
chainloop attestation push --attestation-id ${{ needs.init_attestation.outputs.attestation_id }}
224224
attestation_sha=$(chainloop wf run describe --id ${{ needs.init_attestation.outputs.attestation_id }} -o json | jq -r '.attestation.digest')
225225
# check that the command succeeded
226-
[ -n "$attestation_sha" ] || exit 1
227-
echo "attestation_sha=$attestation_sha" >> $GITHUB_OUTPUT
226+
if [ -n "$attestation_sha" ]; then
227+
echo "attestation_sha=$attestation_sha" >> $GITHUB_OUTPUT
228+
else
229+
exit 1
230+
fi
228231
229232
- name: Mark attestation as failed
230233
if: ${{ failure() }}

0 commit comments

Comments
 (0)