@@ -132,12 +132,12 @@ jobs:
132132 PACKAGE_MANAGER_LOG_PATH=$(unity-cli package-manager-logs)
133133 LICENSING_CLIENT_LOG_PATH=$(unity-cli licensing-client-logs)
134134 LICENSING_AUDIT_LOG_PATH=$(unity-cli licensing-audit-logs)
135-
135+
136136 echo "Hub Log Path: ${HUB_LOG_PATH}"
137137 echo "Package Manager Log Path: ${PACKAGE_MANAGER_LOG_PATH}"
138138 echo "Licensing Client Log Path: ${LICENSING_CLIENT_LOG_PATH}"
139139 echo "Licensing Audit Log Path: ${LICENSING_AUDIT_LOG_PATH}"
140-
140+
141141 if [ ! -f "${HUB_LOG_PATH}" ]; then
142142 echo "::warning:: Hub log file does not exist at ${HUB_LOG_PATH}"
143143 # find all info-log.json files in ~/.config/unity3d/ - print their paths
@@ -151,18 +151,25 @@ jobs:
151151 find ~/.config/ -type f -exec echo "{}" \;
152152 echo "::warning:: Hub log file does not exist at any known location"
153153 fi
154-
154+
155155 if [ ! -f "${PACKAGE_MANAGER_LOG_PATH}" ]; then
156156 echo "::warning::Package Manager log file does not exist at ${PACKAGE_MANAGER_LOG_PATH}"
157157 fi
158-
158+
159159 if [ ! -f "${LICENSING_CLIENT_LOG_PATH}" ]; then
160160 echo "::error::Licensing Client log file does not exist at ${LICENSING_CLIENT_LOG_PATH}"
161161 fi
162-
162+
163163 if [ ! -f "${LICENSING_AUDIT_LOG_PATH}" ]; then
164164 echo "::error::Licensing Audit log file does not exist at ${LICENSING_AUDIT_LOG_PATH}"
165165 fi
166+ - name : Upload UTP logs
167+ if : always()
168+ uses : actions/upload-artifact@v6
169+ with :
170+ name : utp-logs-${{ matrix.name }}
171+ path : ' **/*-utp-json.log'
172+ if-no-files-found : ignore
166173 - name : Return License
167174 if : always()
168175 run : unity-cli return-license --license personal
0 commit comments