chore(ci): extend logging of add-annotations.sh
Some checks failed
Helm / helm-lint (push) Successful in 18s
Helm / helm-unittest (push) Successful in 17s
Release / publish-chart (push) Failing after 15s

This commit is contained in:
Markus Pesch 2025-06-04 18:53:06 +02:00
parent a0bb4f2277
commit 7cfe55a106
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982

View File

@ -81,6 +81,8 @@ function map_type_to_kind() {
COMMIT_TITLES=$(git log "${OLD_TAG}..${NEW_TAG}" --pretty=format:"%s")
echo "INFO: Generate change log entries from ${OLD_TAG} until ${NEW_TAG}"
while IFS= read -r line; do
if [[ "${line}" =~ ^([a-zA-Z]+)(\([^\)]+\))?\:\ (.+)$ ]]; then
TYPE="${BASH_REMATCH[1]}"
@ -92,6 +94,8 @@ while IFS= read -r line; do
DESC="${BASH_REMATCH[3]}"
KIND=$(map_type_to_kind "${TYPE}")
echo "- ${KIND}: ${DESC}"
yq --inplace ". += [ {\"kind\": \"${KIND}\", \"description\": \"${DESC}\"}]" "${YAML_FILE}"
fi
done <<< "${COMMIT_TITLES}"