ci: more fixes

This commit is contained in:
mahee96
2026-02-24 10:10:22 +05:30
parent 42fae569ca
commit 4100e8b1b9

View File

@@ -7,7 +7,7 @@ from pathlib import Path
import time
import json
import inspect
import re
# REPO ROOT relative to script dir
ROOT = Path(__file__).resolve().parents[2]
@@ -391,6 +391,13 @@ def upload_release(release_name, release_tag, commit_sha, repo, upstream_recomme
f"--retrieve {release_tag} "
f"--output-dir {ROOT}"
)
# normalize section header
release_notes = re.sub(
r'^\s*#{1,6}\s*what(?:\'?s|\s+is)?\s+(?:new|changed).*',
"## What's Changed",
release_notes,
flags=re.IGNORECASE | re.MULTILINE,
)
upstream_block = ""
if upstream_recommendation and upstream_recommendation.strip():