diff --git a/.github/workflows/version_branch.yml b/.github/workflows/version_branch.yml index 427e3b8..fb9ff09 100644 --- a/.github/workflows/version_branch.yml +++ b/.github/workflows/version_branch.yml @@ -295,6 +295,10 @@ jobs: if not any(bullet_re.match(x.rstrip(nl).rstrip(cr)) for x in moved): moved = ['- Version bump' + nl] + # Ensure VERSION line exists at top of moved block + if not any(x.lstrip().startswith('- VERSION:') for x in moved): + moved.insert(0, '- Version bump' + nl) + lines[unreleased_idx + 1:k] = moved # Reinsert a fresh UNRELEASED block after H1 insertion point