Skip to content

Commit 5785fae

Browse files
ci: remove trailing dot from release versions (#170)
1 parent 7af0cdc commit 5785fae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/version.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ if [[ $describe_output =~ ^v([0-9]+\.[0-9]+\.[0-9]+)(-([0-9]+)-g[a-f0-9]+)?$ ]];
4848
version=${BASH_REMATCH[1]} # X.Y.Z
4949
commits=${BASH_REMATCH[3]} # number of commits since tag
5050

51-
if [[ "$SHORT" == true ]]; then
51+
# If we're producing a short version string, or this is a release version
52+
# (no commits since tag)
53+
if [[ "$SHORT" == true ]] || [[ -z "$commits" ]]; then
5254
echo "$version"
5355
exit 0
5456
fi

0 commit comments

Comments
 (0)