diff --git a/.gitea/scripts/add-annotations.sh b/.gitea/scripts/add-annotations.sh index 01c5e4e..d9a72e7 100755 --- a/.gitea/scripts/add-annotations.sh +++ b/.gitea/scripts/add-annotations.sh @@ -33,7 +33,7 @@ else fi fi -if [ -z "${1}" ]; then +if [ -z "${2}" ]; then read -p "Enter end tag [${DEFAULT_NEW_TAG}]: " NEW_TAG if [ -z "${NEW_TAG}" ]; then NEW_TAG="${DEFAULT_NEW_TAG}" @@ -47,7 +47,7 @@ if [ -z "${1}" ]; then fi done else - NEW_TAG=${1} + NEW_TAG=${2} if [ -z "$(git tag --list "${NEW_TAG}")" ]; then echo "ERROR: Tag '${NEW_TAG}' not found!" diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 355fa43..162ebe6 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -31,6 +31,9 @@ jobs: NEW_TAG="$(git describe --abbrev=0)" OLD_TAG="$(git describe --abbrev=0 --tags "$(git rev-list --tags --skip=1 --max-count=1)")" + echo "Old: ${OLD_TAG}" + echo "New: ${NEW_TAG}" + .gitea/scripts/add-annotations.sh "${OLD_TAG}" "${NEW_TAG}" - name: Package chart