From 0947dea01ee8f69c3e05d297a2d5c0057006aad4 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Sun, 8 Feb 2026 17:50:50 +0100 Subject: [PATCH] Fix release push to send branch and version tag together Push master and the newly created version tag in a single git push command so the CI release workflow can detect the tag on HEAD. This aligns the release script with the new master-based release pipeline and prevents missed automated releases caused by separate branch and tag pushes. https://chatgpt.com/share/6988bef0-1a0c-800f-93df-7a6c1bdc0331 --- src/pkgmgr/actions/release/workflow.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/pkgmgr/actions/release/workflow.py b/src/pkgmgr/actions/release/workflow.py index f1b90c1..3af910d 100644 --- a/src/pkgmgr/actions/release/workflow.py +++ b/src/pkgmgr/actions/release/workflow.py @@ -5,8 +5,8 @@ import sys from typing import Optional from pkgmgr.actions.branch import close_branch -from pkgmgr.core.git import GitRunError -from pkgmgr.core.git.commands import add, commit, push, tag_annotated +from pkgmgr.core.git import GitRunError, run +from pkgmgr.core.git.commands import add, commit, tag_annotated from pkgmgr.core.git.queries import get_current_branch from pkgmgr.core.repository.paths import resolve_repo_paths @@ -133,8 +133,7 @@ def _release_impl( add(existing_files, preview=True) commit(commit_msg, all=True, preview=True) tag_annotated(new_tag, tag_msg, preview=True) - push("origin", branch, preview=True) - push("origin", new_tag, preview=True) + run(["push", "origin", branch, new_tag], preview=True) if is_highest_version_tag(new_tag): update_latest_tag(new_tag, preview=True) @@ -156,9 +155,8 @@ def _release_impl( commit(commit_msg, all=True, preview=False) tag_annotated(new_tag, tag_msg, preview=False) - # Push branch and ONLY the newly created version tag (no --tags) - push("origin", branch, preview=False) - push("origin", new_tag, preview=False) + # Push branch and ONLY the newly created version tag in one command (no --tags) + run(["push", "origin", branch, new_tag], preview=False) # Update 'latest' only if this is the highest version tag try: