release/1.0.7 #34
1 changed files with 4 additions and 4 deletions
fix(ci): fix validate-release CHANGELOG channel check to inspect heading line
Co-authored-by: pazof <3072814+pazof@users.noreply.github.com>
commit
8960ce7d93
8
.github/workflows/docker-publish-android.yml
vendored
8
.github/workflows/docker-publish-android.yml
vendored
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue