diff --git a/build/changelog.sh b/build/changelog.sh index 7b81650..a3b1b71 100755 --- a/build/changelog.sh +++ b/build/changelog.sh @@ -27,7 +27,7 @@ fi if command -v gh > /dev/null; then LAST_RELEASE="$(gh release list --exclude-drafts --exclude-pre-releases --limit 1 | ${GREP} -E 'v[0-9]+\.[0-9]+\.[0-9]+' | cut -f1 | ${GREP} -v "${VERSION}" || true)" else - LAST_RELEASE="$(git tag --list v* | ${GREP} -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | sort --version-sort --field-separator=. --reverse | ${GREP} -v "${VERSION}" | head -n1 || true)" + LAST_RELEASE="$(git tag --list 'v*' | ${GREP} -E '^v[0-9]+\.[0-9]+\.[0-9]+.*$' | sort --version-sort --field-separator=. --reverse | ${GREP} -v "${VERSION}" | head -n1 || true)" fi if [ -z "${LAST_RELEASE}" ]; then @@ -49,4 +49,4 @@ else fi echo "" -popd > /dev/null \ No newline at end of file +popd > /dev/null