Skip to content

Commit

Permalink
fix: New version script
Browse files Browse the repository at this point in the history
  • Loading branch information
obalunenko committed Dec 12, 2022
1 parent eec49f3 commit b2c71a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/release/new-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,14 @@ function menu() {

SHORTCOMMIT="$(git rev-parse --short HEAD)"

PREV_VERSION="$(git tag --sort=committerdate | tail -1)"
PREV_VERSION="$(git tag | sort -V | tail -1)"
if [ -z "${PREV_VERSION}" ] || [ "${PREV_VERSION}" = "${SHORTCOMMIT}" ]
then
PREV_VERSION="v0.0.0"
fi

echo "Current version: ${PREV_VERSION}"

case "$selection" in
1)
printf "Major updates......\n"
Expand Down

0 comments on commit b2c71a1

Please sign in to comment.