We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00ea15c commit aa38738Copy full SHA for aa38738
.github/scripts/add-tags.sh
@@ -9,8 +9,8 @@ UNITY_VERSION=$1
9
IS_URP=${2:-"false"}
10
echo "Running add_tags.sh with UNITY_VERSION: $UNITY_VERSION, IS_URP: $IS_URP"
11
12
-# Extract the first four characters of UNITY_VERSION
13
-MAJOR_VERSION=${UNITY_VERSION:0:4}
+# Extract the value before the first dot as an integer
+MAJOR_VERSION=$(echo $UNITY_VERSION | cut -d. -f1)
14
BRANCH_NAME=${GITHUB_REF#refs/heads/}
15
16
TAG_PREFIX=$UNITY_VERSION
0 commit comments