@@ -170,28 +170,24 @@ jobs:
170170 UNITY_YEAR=${UNITY_VERSION:0:4}
171171 BRANCH_NAME=${GITHUB_REF#refs/heads/}
172172
173+ TAG_PREFIX=$UNITY_VERSION
173174 if [[ "$BRANCH_NAME" == *"urp"* ]]
174175 then
175- if [[ "$UNITY_YEAR" < "2023" ]]
176- then
177- git tag -a -f $UNITY_VERSION-urp-webgl1 -m "[Automated workflow] Created by upgrade-unity"
178- fi
179- git tag -a -f $UNITY_VERSION-urp-webgl2 -m "[Automated workflow] Created by upgrade-unity"
180- git tag -a -f $UNITY_VERSION-urp-webgl2-debug -m "[Automated workflow] Created by upgrade-unity"
176+ TAG_PREFIX=$UNITY_VERSION-urp
177+ fi
178+
179+ if [[ "$UNITY_YEAR" < "2023" ]]
180+ then
181+ git tag -a -f $TAG_PREFIX-minsize-webgl1 -m "[Automated workflow] Created by upgrade-unity"
182+ git tag -a -f $TAG_PREFIX-webgl1 -m "[Automated workflow] Created by upgrade-unity"
181183 else
182- if [[ "$UNITY_YEAR" < "2023" ]]
183- then
184- git tag -a -f $UNITY_VERSION-minsize-webgl1 -m "[Automated workflow] Created by upgrade-unity"
185- git tag -a -f $UNITY_VERSION-webgl1 -m "[Automated workflow] Created by upgrade-unity"
186- else
187- git tag -a -f $UNITY_VERSION-minsize-webgl2 -m "[Automated workflow] Created by upgrade-unity"
188- fi
189- # Push tags in between - pushing more than 3 tags won't trigger tag workflows
190- git push origin -f --tags
191-
192- git tag -a -f $UNITY_VERSION-webgl2 -m "[Automated workflow] Created by upgrade-unity"
193- git tag -a -f $UNITY_VERSION-webgl2-debug -m "[Automated workflow] Created by upgrade-unity"
184+ git tag -a -f $TAG_PREFIX-minsize-webgl2 -m "[Automated workflow] Created by upgrade-unity"
194185 fi
186+ # Push tags in between - pushing more than 3 tags won't trigger tag workflows
187+ git push origin -f --tags
188+
189+ git tag -a -f $TAG_PREFIX-webgl2 -m "[Automated workflow] Created by upgrade-unity"
190+ git tag -a -f $TAG_PREFIX-webgl2-debug -m "[Automated workflow] Created by upgrade-unity"
195191
196192 git push origin -f --tags
197193 env :
0 commit comments