Skip to content

Commit

Permalink
chore: fixed typo in changelog.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanitskiy committed Aug 28, 2023
1 parent ad093d8 commit d352a40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -49,4 +49,4 @@ else
fi

echo ""
popd > /dev/null
popd > /dev/null

0 comments on commit d352a40

Please sign in to comment.