Seed/update .ci pipeline from manifest-updater v1.1.3

This commit is contained in:
manifest-updater pipeline seed
2026-06-23 19:56:53 +00:00
parent fa2ddcc4c9
commit a23dbf488a
+5 -5
View File
@@ -61,11 +61,11 @@ HVER="$(grep -iE '^[[:space:]]*\*?[[:space:]]*Version:' "${MAIN}" | head -1 | se
if grep -qE "_VERSION'" "${MAIN}"; then if grep -qE "_VERSION'" "${MAIN}"; then
grep -qF "_VERSION', '${VER}'" "${MAIN}" || { echo "::error::*_VERSION const != ${VER}"; exit 1; } grep -qF "_VERSION', '${VER}'" "${MAIN}" || { echo "::error::*_VERSION const != ${VER}"; exit 1; }
fi fi
XY="$(printf '%s' "${VER}" | cut -d. -f1,2)" # CHANGELOG.md is documentation, not correctness — warn, never block a release
if [ -f CHANGELOG.md ]; then # (the modal's changelog comes from readme.txt's == Changelog == section anyway,
grep -qF "[${VER}]" CHANGELOG.md || { echo "::error::CHANGELOG.md has no [${VER}] entry"; exit 1; } # and version/tag/stable are already enforced hard above).
else if [ -f CHANGELOG.md ] && ! grep -qF "[${VER}]" CHANGELOG.md; then
echo "::warning::no CHANGELOG.md — changelog gate skipped" echo "::warning::CHANGELOG.md has no [${VER}] entry (documentation only — not blocking)."
fi fi
[ -f readme.txt ] || { echo "::error::no readme.txt — required for packaging"; exit 1; } [ -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')" RSTABLE="$(grep -iE '^Stable tag:' readme.txt | head -1 | sed -E 's/.*:[[:space:]]*//' | tr -d '[:space:]\r')"