Merge pull request #70 from pazof/copilot/fix-validate-release-job

fix(ci): validate-release channel check always failed for stable/preview tags
This commit is contained in:
Paul Schneider 2026-08-17 02:05:01 +01:00 committed by GitHub
commit 739cd716ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -129,12 +129,12 @@ jobs:
exit 1 exit 1
fi 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". # 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 "::error::Section '## [$TAG]' must declare suffix '- $CHANNEL' to match tag parity."
echo "Current section body (first 5 lines):" echo "Current section header: $HEADER"
echo "$BODY" | head -5
exit 1 exit 1
fi fi