Refactor GitHub Actions workflow and add scripts for versioning and release notes extraction

This commit is contained in:
Ujwal223
2026-05-25 22:53:53 +05:45
parent 5f86441675
commit 7d13ad64f1
3 changed files with 25 additions and 54 deletions
+8
View File
@@ -0,0 +1,8 @@
from pathlib import Path
import re
text = Path("CHANGELOG.md").read_text(encoding="utf-8")
m = re.search(r"^##\s+FocusGram\s+([0-9]+\.[0-9]+\.[0-9]+)\s*$", text, re.M)
if not m:
raise SystemExit("Could not find a top changelog heading like: ## FocusGram 2.0.0")
print(m.group(1))