From 4100e8b1b973666b0a99c54b43f906469cc77262 Mon Sep 17 00:00:00 2001 From: mahee96 <47920326+mahee96@users.noreply.github.com> Date: Tue, 24 Feb 2026 10:10:22 +0530 Subject: [PATCH] ci: more fixes --- scripts/ci/workflow.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/ci/workflow.py b/scripts/ci/workflow.py index 7eb5cb7c..353132fc 100644 --- a/scripts/ci/workflow.py +++ b/scripts/ci/workflow.py @@ -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():