Skip to content

chore(release): make promote_rc workflow call publish_release workflow to finish publishing#3900

Merged
rickeylev merged 2 commits into
bazel-contrib:mainfrom
rickeylev:chain-release-publish-workflow
Jul 4, 2026
Merged

chore(release): make promote_rc workflow call publish_release workflow to finish publishing#3900
rickeylev merged 2 commits into
bazel-contrib:mainfrom
rickeylev:chain-release-publish-workflow

Conversation

@rickeylev

Copy link
Copy Markdown
Collaborator

Why: The tagging done by promote_rc doesn't trigger the on-tag trigger of the publish workflow (due to GITHUB_TOKEN restriction).

How:

  • Modified promote_rc.py to output the promoted version to GITHUB_OUTPUT.
  • Modified release_promote_rc.yaml to capture this version and chain the release_publish workflow.
  • Added unit tests for GITHUB_OUTPUT writing in promote_rc_test.py.

The tagging done by promote_rc doesn't trigger the on-tag trigger of
the publish workflow. To fix this, promote_rc now outputs the promoted
version, and release_promote_rc.yaml uses it to call release_publish.yaml
explicitly.
@rickeylev
rickeylev requested a review from aignas as a code owner July 4, 2026 06:27

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds support for writing the promoted release candidate version to the GITHUB_OUTPUT environment variable in promote_rc.py, along with corresponding unit tests. The review feedback suggests specifying encoding="utf-8" when writing and reading files to ensure cross-platform compatibility, and refactoring the unit tests to manage the temporary directory locally within the specific test rather than in the global setUp method.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread tools/private/release/promote_rc.py Outdated
Comment thread tests/tools/private/release/promote_rc_test.py
Comment thread tests/tools/private/release/promote_rc_test.py
@rickeylev rickeylev changed the title chore(release) chore(release): make promote_rc workflow call publish_release workflow to finish publishing Jul 4, 2026
@rickeylev
rickeylev merged commit dcbdf1b into bazel-contrib:main Jul 4, 2026
4 of 6 checks passed
@rickeylev
rickeylev deleted the chain-release-publish-workflow branch July 4, 2026 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant