Skip to content

Fix release-tag workflow to push only annotated tags to main#87

Merged
data-douser merged 4 commits intomainfrom
dd/release-prep/5
Feb 24, 2026
Merged

Fix release-tag workflow to push only annotated tags to main#87
data-douser merged 4 commits intomainfrom
dd/release-prep/5

Conversation

@data-douser
Copy link
Copy Markdown
Collaborator

This pull request updates the release tagging workflow to better comply with branch protection rules and clarify the process for tagging releases. The main change ensures that commits made during the release process are not pushed directly to the main branch, but are instead referenced by a tag, which is then used for downstream release jobs.

The release-tag workflow checks out a commit (not a branch), leaving
git in detached HEAD state.  `git push origin HEAD` fails because git
cannot resolve the bare `HEAD` symbolic ref to a remote branch name.

Create a temporary local branch before committing and use an explicit
refspec (`tmp/release-vX.Y.Z:refs/heads/main`) so the push is an
unambiguous fast-forward to main.
Branch protection on main requires PRs, status checks, and code
scanning — direct pushes are rejected.  Instead of pushing the
version-bump commit to main, commit it locally and push only the
annotated tag ref.  Downstream release jobs check out by tag so
they receive the correct versioned code.
Branch protection on main requires PRs, status checks, and code
scanning — direct pushes are rejected.  Instead of pushing the
version-bump commit to main, commit it locally and push only the
annotated tag ref.  Downstream release jobs check out by tag so
they receive the correct versioned code.
…ql-development-mcp-server into dd/release-prep/5
@data-douser data-douser self-assigned this Feb 24, 2026
Copilot AI review requested due to automatic review settings February 24, 2026 02:40
@data-douser data-douser requested review from a team and enyil as code owners February 24, 2026 02:40
@data-douser data-douser added the bug Something isn't working label Feb 24, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

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

This pull request modifies the release tagging workflow to comply with branch protection rules on the main branch. The key change is that version update commits are no longer pushed directly to main, but are instead made reachable only via the annotated release tag. Downstream release jobs continue to work correctly by checking out the tag reference.

Changes:

  • Removed the push of version update commits to the main branch
  • Updated comments to clarify that commits are intentionally not pushed to main due to branch protection rules
  • Made the tag push syntax more explicit by using the full refs/tags/ prefix

@data-douser data-douser merged commit f0b5082 into main Feb 24, 2026
11 checks passed
@data-douser data-douser deleted the dd/release-prep/5 branch February 24, 2026 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants