Seed/update .ci pipeline from manifest-updater v1.1.3
This commit is contained in:
+5
-5
@@ -61,11 +61,11 @@ HVER="$(grep -iE '^[[:space:]]*\*?[[:space:]]*Version:' "${MAIN}" | head -1 | se
|
||||
if grep -qE "_VERSION'" "${MAIN}"; then
|
||||
grep -qF "_VERSION', '${VER}'" "${MAIN}" || { echo "::error::*_VERSION const != ${VER}"; exit 1; }
|
||||
fi
|
||||
XY="$(printf '%s' "${VER}" | cut -d. -f1,2)"
|
||||
if [ -f CHANGELOG.md ]; then
|
||||
grep -qF "[${VER}]" CHANGELOG.md || { echo "::error::CHANGELOG.md has no [${VER}] entry"; exit 1; }
|
||||
else
|
||||
echo "::warning::no CHANGELOG.md — changelog gate skipped"
|
||||
# CHANGELOG.md is documentation, not correctness — warn, never block a release
|
||||
# (the modal's changelog comes from readme.txt's == Changelog == section anyway,
|
||||
# and version/tag/stable are already enforced hard above).
|
||||
if [ -f CHANGELOG.md ] && ! grep -qF "[${VER}]" CHANGELOG.md; then
|
||||
echo "::warning::CHANGELOG.md has no [${VER}] entry (documentation only — not blocking)."
|
||||
fi
|
||||
[ -f readme.txt ] || { echo "::error::no readme.txt — required for packaging"; exit 1; }
|
||||
RSTABLE="$(grep -iE '^Stable tag:' readme.txt | head -1 | sed -E 's/.*:[[:space:]]*//' | tr -d '[:space:]\r')"
|
||||
|
||||
Reference in New Issue
Block a user