Skip to content

fix: support releasing from non-main branches with version override#290

Merged
jsalaber merged 1 commit intomainfrom
release-2.7.0
Apr 17, 2026
Merged

fix: support releasing from non-main branches with version override#290
jsalaber merged 1 commit intomainfrom
release-2.7.0

Conversation

@luxscious
Copy link
Copy Markdown
Contributor

Fix release workflow to support non-main release branches

The prepare-release action computes the next version from the most recently created git tag rather than the highest
semver tag. After the v2.3.3 backport (created after v2.6.3), this caused the workflow to compute 2.4.0 as the next
version instead of 2.7.0.

Changes:

  • Adds an optional version-override input to manually specify the release version, bypassing the broken auto-increment
    when needed
  • Fixes git push origin HEAD:main → git push origin HEAD so the workflow can release from branches other than main
  • Changes the GitHub release target from hardcoded main to ${{ github.ref_name }} for the same reason

@luxscious luxscious requested a review from a team as a code owner April 16, 2026 18:24
Copilot AI review requested due to automatic review settings April 16, 2026 18:24
@luxscious luxscious changed the title Release 2.7.0 chore: release 2.7.0 Apr 16, 2026
@luxscious luxscious changed the title chore: release 2.7.0 fix: support releasing from non-main branches with version override Apr 16, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the GitHub Actions release workflow so releases can be cut from non-main branches and (optionally) override the computed next version when the auto-increment logic chooses the wrong base tag.

Changes:

  • Add a version-override workflow_dispatch input and a “Resolve version” step that selects either the override or the computed next tag.
  • Replace hardcoded main branch assumptions by pushing without :main and creating releases targeting ${{ github.ref_name }}.
  • Wire version usage (sed updates, commit message, release tag) through the resolved version output.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/release.yml Outdated
Comment thread .github/workflows/release.yml
@jsalaber jsalaber merged commit c89c2c8 into main Apr 17, 2026
6 of 8 checks passed
@jsalaber jsalaber deleted the release-2.7.0 branch April 17, 2026 17:16
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.

3 participants