@@ -104,7 +104,7 @@ jobs:
104104 if : ${{ steps.verify-project-path.outputs.RUN_BUILD == 'true' }}
105105 uses : ./.github/actions/run-unity-test-batch
106106 with :
107- unity-project-path : ${{ steps.verify-project-path.outputs .UNITY_PROJECT_PATH }}
107+ unity-project-path : ${{ env .UNITY_PROJECT_PATH }}
108108 build-target : ${{ matrix.build-target }}
109109 build-args : ${{ matrix.build-args }}
110110 - name : Update Android Target Sdk Version
@@ -160,11 +160,25 @@ jobs:
160160 if [ ! -f "${LICENSING_AUDIT_LOG_PATH}" ]; then
161161 echo "::error::Licensing Audit log file does not exist at ${LICENSING_AUDIT_LOG_PATH}"
162162 fi
163- - name : Upload UTP logs
163+ - name : Compute UTP artifact name
164+ if : always()
165+ id : utp-artifact-name
166+ env :
167+ MATRIX_OS : ${{ matrix.os }}
168+ MATRIX_UNITY_VERSION : ${{ matrix.unity-version }}
169+ MATRIX_BUILD_TARGET : ${{ matrix.build-target }}
170+ run : |
171+ set -euo pipefail
172+ unity_version="$MATRIX_UNITY_VERSION"
173+ unity_version="${unity_version//\*/x}"
174+ artifact_name="${MATRIX_OS}-${unity_version}-${MATRIX_BUILD_TARGET}-tests-batch-utp-logs"
175+ echo "name=$artifact_name" >> $GITHUB_OUTPUT
176+ shell : bash
177+ - name : Upload UTP logs artifact
164178 if : always()
165179 uses : actions/upload-artifact@v6
166180 with :
167- name : ${{ matrix.os }}-${{ matrix.unity-version }}-${{ matrix.build-target }}-tests-batch-utp-logs
181+ name : ${{ steps.utp-artifact-name.outputs.name }}
168182 path : ' **/*-utp-json.log'
169183 if-no-files-found : ignore
170184 - name : Return License
0 commit comments