fix(scripts): exit when change log file is empty

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

View File

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