Skip to content

Commit

Permalink
publish-commit-bottles: skip last ditch if unneeded
Browse files Browse the repository at this point in the history
Signed-off-by: William Woodruff <[email protected]>
  • Loading branch information
woodruffw committed May 7, 2024
1 parent cd6f069 commit bc8d552
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish-commit-bottles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -344,11 +344,13 @@ jobs:
# above the 'pr-pull' step, which should be split into separate 'pull'
# and 'push to GitHub Packages' phases.
continue-on-error: true
id: first-attestation-attempt
uses: actions/attest-build-provenance@v1
with:
subject-path: '${{steps.pr-pull.outputs.bottle_path}}/*.tar.gz'

- name: Generate build provenance (last ditch)
if: always() && steps.first-attestation-attempt.outcome == 'failure'
uses: actions/attest-build-provenance@v1
with:
subject-path: '${{steps.pr-pull.outputs.bottle_path}}/*.tar.gz'
Expand Down

0 comments on commit bc8d552

Please sign in to comment.