From bc8d5529b823690cce53889b10be506c16ba9d5f Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Tue, 7 May 2024 17:05:45 -0400 Subject: [PATCH] publish-commit-bottles: skip last ditch if unneeded Signed-off-by: William Woodruff --- .github/workflows/publish-commit-bottles.yml | 2 ++ 1 file changed, 2 insertions(+) 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'