Skip to content

Commit aa38738

Browse files
committed
Parse the major unity version correctly
1 parent 00ea15c commit aa38738

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/scripts/add-tags.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ UNITY_VERSION=$1
99
IS_URP=${2:-"false"}
1010
echo "Running add_tags.sh with UNITY_VERSION: $UNITY_VERSION, IS_URP: $IS_URP"
1111

12-
# Extract the first four characters of UNITY_VERSION
13-
MAJOR_VERSION=${UNITY_VERSION:0:4}
12+
# Extract the value before the first dot as an integer
13+
MAJOR_VERSION=$(echo $UNITY_VERSION | cut -d. -f1)
1414
BRANCH_NAME=${GITHUB_REF#refs/heads/}
1515

1616
TAG_PREFIX=$UNITY_VERSION

0 commit comments

Comments
 (0)