fix(scripts): exit when change log file is empty
Some checks failed
Helm / helm-lint (push) Successful in 15s
Helm / helm-unittest (push) Successful in 17s
Release / publish-chart (push) Failing after 14s

This commit is contained in:
Markus Pesch 2025-06-03 21:14:26 +02:00
parent 7caedbe80d
commit 2740175246
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982

View File

@ -100,7 +100,7 @@ done <<< "${COMMIT_TITLES}"
if [ -s "${YAML_FILE}" ]; then
yq --no-colors --inplace ".annotations.\"artifacthub.io/changes\" |= loadstr(\"${YAML_FILE}\") | sort_keys(.)" "${CHART_FILE}"
else
echo "ERROR: Changelog file is empty: ${YAML_FILE}"
echo "ERROR: Changelog file is empty: ${YAML_FILE}" 1>&2
exit 1
fi