fix(ci): fix validate-release CHANGELOG channel check to inspect heading line

Co-authored-by: pazof <3072814+pazof@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-08-17 01:02:14 +00:00 committed by GitHub
commit 843d6b227f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -129,12 +129,12 @@ jobs:
exit 1
fi
# Vérification cohérence du canal déclaré dans le suffixe.
# Vérification cohérence du canal déclaré dans le titre de section.
# Format attendu : "## [TAG] - stable" / "- preview" / "- unstable".
if [[ "$BODY" != *" - $CHANNEL"* ]]; then
HEADER=$(grep -m1 "^## \[$TAG\]" CHANGELOG.md)
if [[ "$HEADER" != *" - $CHANNEL"* ]]; then
echo "::error::Section '## [$TAG]' must declare suffix '- $CHANNEL' to match tag parity."
echo "Current section body (first 5 lines):"
echo "$BODY" | head -5
echo "Current section header: $HEADER"
exit 1
fi