Conversation
✅ Deploy Preview for nifty-bassi-e26446 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Co-authored-by: phlax <454682+phlax@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update release/publish pipeline to support non-main branches
Make release/publish workflows branch-aware across main and future release branches
Sep 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This ports the generic branch-aware release/publish plumbing to
mainso long-lived non-mainbranches can cut and publish releases without branch-specific workflow hacks. It also removes the highest-risk behavior: post-release dev-bump commits are no longer forced tomainwhen a release is published from another branch.Release action plumbing (
actions/github/release*)branchinput (defaultmain) to:actions/github/release/action.ymlactions/github/release/publish/action.ymlbranchthrough torelease.shviaBRANCH.release.shto useBRANCHfor fetch/checkout/push; defaults tomainfor backward compatibility.Release workflow targeting (
release.yml/_release.yml)release.ymlnow passesbranch: ${{ github.ref_name }}into_release.yml._release.ymlnow takes explicitbranchinput (defaultmain) and uses it for:-{branch}whenbranch != mainto avoid cross-branch branch-name collisions.Publish workflow plumbing (
_publish_release.yml/_publish.yml)_publish_release.ymlnow acceptsbranch(defaultmain), checks out that branch, and passes it intoactions/github/release._publish.ymlnow accepts:branch(defaultmain)release-types(defaultactions bazel bins docker python)workflows(default current 5 required workflows)release-types, and required workflow wait-list is now input-driven.Data-driven branch config (
publish.yml)configjob that resolves branch publish policy from a declarative map:run(whether branch is publish-enabled)release-typesworkflows(newline-joined)publishnow gates onfromJSON(needs.config.outputs.run)and passes resolved branch config into_publish.yml.mainbehavior is preserved as the default map entry.workspace) as a one-entry change.Branch policy sync comments
push.branches: [main]inbazel.yml,docker.yml,actions.yml,py.yml, andrust.ymlto keep CI branch triggers aligned withpublish.ymlbranch config.Sequencing note (important): this PR introduces branch-aware inputs and wiring in
actions/github/release*, but_publish_release.ymlcurrently pinsactions/github/releaseby SHA. Effective rollout is: (1) merge this, (2) cut a newactionsrelease so pinned internals include branch-awarerelease.sh, then (3) on each release branch, add itself topublish.ymlconfig + CIpush.branchesand bump action pins. Approach is based on the generic half of the prototype in #5232.