Update version_branch.yml

This commit is contained in:
2025-12-23 13:38:06 -06:00
parent e1b5863bf9
commit 3c12a8bd6d

View File

@@ -295,6 +295,10 @@ jobs:
if not any(bullet_re.match(x.rstrip(nl).rstrip(cr)) for x in moved): if not any(bullet_re.match(x.rstrip(nl).rstrip(cr)) for x in moved):
moved = ['- Version bump' + nl] 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 lines[unreleased_idx + 1:k] = moved
# Reinsert a fresh UNRELEASED block after H1 insertion point # Reinsert a fresh UNRELEASED block after H1 insertion point