Skip to content

StreamVault is a TV-first free IPTV player for Android TV built with Kotlin, Jetpack Compose, Room, Hilt, and Media3.

fix(ci): match [x.y.z] changelog header format in release notes extraction

David Nashash61fce8aa883c
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 1d17bbe4..a52639b7 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -156,9 +156,14 @@ jobs:
echo "Extracting notes for version $VERSION"
# Extract lines between the header and the next header (or EOF)
+ # Supports both "## [1.0.5] - date" and legacy "## 1.0.5 date" styles.
{
echo "notes<<EOF"
- awk -v ver="$VERSION" '$0 ~ "^## " ver " " {p=1; next} $0 ~ "^## " && p {p=0} p {print}' docs/CHANGELOG.md
+ awk -v ver="$VERSION" '
+ $0 ~ ("^## \\[" ver "\\]") || $0 ~ ("^## " ver " ") { p=1; next }
+ $0 ~ "^## " && p { p=0 }
+ p { print }
+ ' docs/CHANGELOG.md
echo "EOF"
} >> "$GITHUB_OUTPUT"