You've already forked prometheus-fail2ban-exporter-charts
							
							fix(scripts): exit when change log file is empty
This commit is contained in:
		| @@ -97,7 +97,11 @@ while IFS= read -r line; do | ||||
|   fi | ||||
| done <<< "${COMMIT_TITLES}" | ||||
|  | ||||
| yq --no-colors --inplace ".annotations.\"artifacthub.io/changes\" |= loadstr(\"${YAML_FILE}\") | sort_keys(.)" "${CHART_FILE}" | ||||
| yq --no-colors --inplace ".version = \"${NEW_TAG}\"" "${CHART_FILE}" | ||||
| 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}" | ||||
|   exit 1 | ||||
| fi | ||||
|  | ||||
| rm "${YAML_FILE}" | ||||
		Reference in New Issue
	
	Block a user