Skip to content

Commit 51b6710

Browse files
committed
chore: always use the latest released version tag when building
1 parent ba7d183 commit 51b6710

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ if ! [[ ${remote_url} =~ [@/]github.com ]] && ! [[ ${remote_url} =~ [:/]coder/co
4141
log
4242
last_tag="v2.0.0"
4343
else
44-
last_tag="$(git describe --tags --abbrev=0)"
44+
last_tag=$(git describe --tags $(git rev-list --tags --max-count=1))
4545
fi
4646

4747
version="${last_tag}"

0 commit comments

Comments
 (0)