Skip to content

Commit

Permalink
trying different conditional logic [no ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
djredman99 authored Nov 2, 2024
1 parent 3b331ac commit 01ed174
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/14-build-attestations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,16 @@ jobs:
id: validate
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
# FAIL CASE
#run: gh attestation verify staging/attestations.tar.gz -R djredman99/gh-scripts
# SUCCESS CASE
run: gh attestation verify staging/attestations.tar.gz -R ${{ github.repository }}
continue-on-error: true

- name: Output Attestation
if: steps.validate.outcome == 'success'
run: echo "The attestation is VERIFIED" >> $GITHUB_STEP_SUMMARY

- name: Output Attestation FAILED
if: (failure() && steps.validate.outcome == 'failure')
if: steps.validate.outcome == 'failure'
run: echo "The attestation is NOT VERIFIED" >> $GITHUB_STEP_SUMMARY

0 comments on commit 01ed174

Please sign in to comment.