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
This commit is contained in:
Adam Perry @ OpenAI
2026-07-28 19:21:33 +00:00
committed by copyberry
parent 709283b432
commit dd6b880353

View File

@@ -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: