Skip to content

Commit d352a40

Browse files
committed
chore: fixed typo in changelog.sh
1 parent ad093d8 commit d352a40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/changelog.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fi
2727
if command -v gh > /dev/null; then
2828
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)"
2929
else
30-
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)"
30+
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)"
3131
fi
3232

3333
if [ -z "${LAST_RELEASE}" ]; then
@@ -49,4 +49,4 @@ else
4949
fi
5050

5151
echo ""
52-
popd > /dev/null
52+
popd > /dev/null

0 commit comments

Comments
 (0)