From dd6b8803538ce80eccaef4804c5ecf574457dbef Mon Sep 17 00:00:00 2001 From: "Adam Perry @ OpenAI" Date: Tue, 28 Jul 2026 19:21:33 +0000 Subject: [PATCH] Advance latest-alpha-cli after release publishing completes (#35818) ## What changed Make the `update-branch` job wait for successful R2 publication before moving `latest-alpha-cli`. For releases that publish npm packages, also require the npm job to succeed; releases that intentionally skip npm publication can still advance the branch. GitOrigin-RevId: 38381b82c95c5c9650b2d72258ea7b835bdfa555 --- .github/workflows/rust-release.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust-release.yml b/.github/workflows/rust-release.yml index 359e511ce1..e8797d0789 100644 --- a/.github/workflows/rust-release.yml +++ b/.github/workflows/rust-release.yml @@ -1637,11 +1637,20 @@ jobs: if: >- ${{ !cancelled() && - needs.release.result == 'success' + needs.release.result == 'success' && + needs.publish-r2.result == 'success' && + ( + needs.release.outputs.should_publish_npm != 'true' || + needs.publish-npm.result == 'success' + ) }} permissions: contents: write - needs: release + # R2 waits for the GitHub release and DotSlash release-asset uploads. + needs: + - release + - publish-r2 + - publish-npm runs-on: ubuntu-latest steps: