mirror of
https://github.com/SideStore/SideStore.git
synced 2026-03-27 12:55:40 +01:00
ci: more fixes
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user