diff --git a/.github/workflows/publish-commit-bottles.yml b/.github/workflows/publish-commit-bottles.yml index 338142ff3500c..5b510ff2bfbd7 100644 --- a/.github/workflows/publish-commit-bottles.yml +++ b/.github/workflows/publish-commit-bottles.yml @@ -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'