Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 964582a

Browse files
committed
fix: Version tag in scripts
1 parent a2f6a43 commit 964582a

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/build/compile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ echo "Building ${APP}..."
1616
COMMIT="$(git rev-parse HEAD)"
1717
SHORTCOMMIT="$(git rev-parse --short HEAD)"
1818
DATE="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
19-
VERSION="$(git tag --sort=committerdate | tail -1)"
19+
VERSION="$(git tag | sort -V | tail -1)"
2020
GOVERSION="$(go version | awk '{print $3;}')"
2121

2222
if [ -z "${VERSION}" ] || [ "${VERSION}" = "${SHORTCOMMIT}" ]

scripts/release/check.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ git fetch --tags -f
2222
COMMIT="$(git rev-parse HEAD)"
2323
SHORTCOMMIT="$(git rev-parse --short HEAD)"
2424
DATE="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
25-
VERSION="$(git tag --sort=committerdate | tail -1)"
25+
VERSION="$(git tag | sort -V | tail -1)"
2626
GOVERSION="$(go version | awk '{print $3;}')"
2727

2828
if [ -z "${VERSION}" ] || [ "${VERSION}" = "${SHORTCOMMIT}" ]

scripts/release/local-snapshot-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ git fetch --tags -f
2222
COMMIT="$(git rev-parse HEAD)"
2323
SHORTCOMMIT="$(git rev-parse --short HEAD)"
2424
DATE="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
25-
VERSION="$(git tag --sort=committerdate | tail -1)"
25+
VERSION="$(git tag | sort -V | tail -1)"
2626
GOVERSION="$(go version | awk '{print $3;}')"
2727

2828
if [ -z "${VERSION}" ] || [ "${VERSION}" = "${SHORTCOMMIT}" ]

scripts/release/release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ git fetch --tags -f
2323
COMMIT="$(git rev-parse HEAD)"
2424
SHORTCOMMIT="$(git rev-parse --short HEAD)"
2525
DATE="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
26-
VERSION="$(git tag --sort=committerdate | tail -1)"
26+
VERSION="$(git tag | sort -V | tail -1)"
2727
GOVERSION="$(go version | awk '{print $3;}')"
2828

2929
if [ -z "${VERSION}" ] || [ "${VERSION}" = "${SHORTCOMMIT}" ]

0 commit comments

Comments
 (0)