Skip to content

Commit

Permalink
update version.sh (new command to get tag)
Browse files Browse the repository at this point in the history
  • Loading branch information
HadronCollider committed Apr 21, 2024
1 parent 9c57d7c commit 34748f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/version.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
COMMIT=$(git rev-parse HEAD)
BRANCH=$(git symbolic-ref HEAD | sed 's!refs\/heads\/!!')
DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
VERSION=$(git tag | tail -1)
VERSION=$(git describe --tags --abbrev=0)

[ ${#VERSION} == 0 ] && VERSION="no version"
echo "{
Expand Down

0 comments on commit 34748f3

Please sign in to comment.