From d352a40694366a14f2358a485ef4bf14775cccf6 Mon Sep 17 00:00:00 2001 From: Maxim Ivanitskiy Date: Mon, 28 Aug 2023 13:45:14 -0700 Subject: [PATCH] chore: fixed typo in changelog.sh --- build/changelog.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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