We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad093d8 commit d352a40Copy full SHA for d352a40
build/changelog.sh
@@ -27,7 +27,7 @@ fi
27
if command -v gh > /dev/null; then
28
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)"
29
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)"
+ 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)"
31
fi
32
33
if [ -z "${LAST_RELEASE}" ]; then
@@ -49,4 +49,4 @@ else
49
50
51
echo ""
52
-popd > /dev/null
+popd > /dev/null
0 commit comments