Skip to content

Commit c7bbdd1

Browse files
fixes to workflow
1 parent 5b67358 commit c7bbdd1

2 files changed

Lines changed: 18 additions & 4 deletions

File tree

.github/workflows/integration-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: actions/checkout@v6
2121
with:
2222
sparse-checkout: .github/
23-
- uses: RageAgainstThePixel/job-builder@development
23+
- uses: RageAgainstThePixel/job-builder@v1
2424
id: setup-jobs
2525
with:
2626
build-options: ./.github/workflows/build-options.json

.github/workflows/unity-build.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)