mirror of
https://github.com/moyf/easy-copy.git
synced 2026-07-22 05:43:47 +00:00
ci: fix duplicate separators in release notes extraction
This commit is contained in:
parent
aa73736d9f
commit
37a490d777
1 changed files with 4 additions and 2 deletions
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
|
|
@ -49,9 +49,11 @@ jobs:
|
|||
# Check if this block belongs to our minor version
|
||||
heading_match = re.match(r'^## \[(\d+\.\d+)\.\d+\]', block)
|
||||
if heading_match and heading_match.group(1) == minor:
|
||||
output.append(block.strip())
|
||||
# Strip trailing whitespace and trailing "---" separator
|
||||
cleaned = re.sub(r'\n---\s*$', '', block.strip())
|
||||
output.append(cleaned)
|
||||
|
||||
print("\n\n---\n\n".join(output))
|
||||
print("\n\n".join(output))
|
||||
PYEOF
|
||||
|
||||
- name: Create release
|
||||
|
|
|
|||
Loading…
Reference in a new issue