4 Commits

Author SHA1 Message Date
24d29f2b09 chore(ci): cleanup scripts
All checks were successful
Helm / helm-lint (push) Successful in 15s
Helm / helm-unittest (push) Successful in 16s
Release / publish-chart (push) Successful in 18s
2025-06-04 19:43:26 +02:00
a4180e0953 chore(ci): use git tag sort to get last two tags
All checks were successful
Helm / helm-lint (push) Successful in 12s
Helm / helm-unittest (push) Successful in 16s
Release / publish-chart (push) Successful in 25s
2025-06-04 19:23:13 +02:00
c5783bd053 chore(ci): log commits
Some checks failed
Helm / helm-unittest (push) Successful in 13s
Helm / helm-lint (push) Successful in 15s
Release / publish-chart (push) Failing after 14s
2025-06-04 19:18:32 +02:00
7cfe55a106 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
2025-06-04 18:53:06 +02:00
2 changed files with 9 additions and 10 deletions

View File

@ -8,8 +8,8 @@ if [ ! -f "${CHART_FILE}" ]; then
exit 1
fi
DEFAULT_NEW_TAG="$(git describe --abbrev=0)"
DEFAULT_OLD_TAG="$(git describe --abbrev=0 --tags "$(git rev-list --tags --skip=1 --max-count=1)")"
DEFAULT_NEW_TAG="$(git tag --sort=-version:refname | head -n 1)"
DEFAULT_OLD_TAG="$(git tag --sort=-version:refname | head -n 2 | tail -n 1)"
if [ -z "${1}" ]; then
read -p "Enter start tag [${DEFAULT_OLD_TAG}]: " OLD_TAG
@ -79,7 +79,9 @@ function map_type_to_kind() {
esac
}
COMMIT_TITLES=$(git log "${OLD_TAG}..${NEW_TAG}" --pretty=format:"%s")
COMMIT_TITLES="$(git log --pretty=format:"%s" "${OLD_TAG}..${NEW_TAG}")"
echo "INFO: Generate change log entries from ${OLD_TAG} until ${NEW_TAG}"
while IFS= read -r line; do
if [[ "${line}" =~ ^([a-zA-Z]+)(\([^\)]+\))?\:\ (.+)$ ]]; then
@ -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}"

View File

@ -2,8 +2,6 @@ name: Release
on:
push:
branches:
- master
tags:
- "**"
@ -24,11 +22,8 @@ jobs:
- name: Add Artifacthub.io annotations
run: |
git tag
NEW_TAG="$(git describe --abbrev=0)"
OLD_TAG="$(git describe --abbrev=0 --tags "$(git rev-list --tags --skip=1 --max-count=1)")"
NEW_TAG="$(git tag --sort=-version:refname | head -n 1)"
OLD_TAG="$(git tag --sort=-version:refname | head -n 2 | tail -n 1)"
.gitea/scripts/add-annotations.sh "${OLD_TAG}" "${NEW_TAG}"
- name: Package chart