From fac58c1153373b994cf15f343db152d20f700b62 Mon Sep 17 00:00:00 2001 From: dkumar-oai Date: Wed, 16 Sep 2026 00:49:56 +0000 Subject: [PATCH] Run R2 publishing when release dependencies succeed (#45823) ## Why A release can succeed with the optional `provisioned-macos-candidate` job skipped. R2 publishing needs explicit status conditions to avoid inheriting GitHub Actions' default skip behavior from upstream jobs. ## What changed Add `!cancelled()` and explicit dependency success checks to both R2 jobs in `.github/workflows/rust-release.yml`. Asset publishing requires `release` to succeed; finalization also requires `publish-dotslash` and `publish-r2-assets` to succeed. GitOrigin-RevId: dbb975b79592df26d128ebf5ea770d92555d431d --- .github/workflows/rust-release.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/rust-release.yml b/.github/workflows/rust-release.yml index 34b04adc65..6722be1139 100644 --- a/.github/workflows/rust-release.yml +++ b/.github/workflows/rust-release.yml @@ -1693,6 +1693,7 @@ jobs: publish-r2-assets: name: publish-r2-assets needs: release + if: ${{ !cancelled() && needs.release.result == 'success' }} permissions: contents: read uses: ./.github/workflows/r2-release.yml @@ -1706,6 +1707,13 @@ jobs: publish-r2: name: publish-r2 needs: [release, publish-dotslash, publish-r2-assets] + if: >- + ${{ + !cancelled() && + needs.release.result == 'success' && + needs.publish-dotslash.result == 'success' && + needs.publish-r2-assets.result == 'success' + }} permissions: contents: read uses: ./.github/workflows/r2-release.yml