Update version_branch.yml
This commit is contained in:
6
.github/workflows/version_branch.yml
vendored
6
.github/workflows/version_branch.yml
vendored
@@ -295,14 +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: ' + new_version + nl)
|
||||
|
||||
lines[unreleased_idx + 1:k] = moved
|
||||
|
||||
# Reinsert a fresh UNRELEASED block after H1 insertion point
|
||||
insert_unreleased = nl + '## [UNRELEASED]' + nl + '- Placeholder for next release' + nl + nl
|
||||
insert_unreleased = nl + '## [UNRELEASED]' + nl + '- ' + nl + nl
|
||||
lines.insert(insert_at, insert_unreleased)
|
||||
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user