Skip to content

Commit ce4aa2e

Browse files
fix artifact names
1 parent 18a04cf commit ce4aa2e

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/unity-build.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,21 @@ jobs:
100100
else
101101
echo "Skipping build: Unity version $version does not support the build pipeline package (requires 2019.4+)"
102102
fi
103+
- name: Compute safe artifact name
104+
id: artifact-name
105+
run: |
106+
unity_version="${{ matrix.unity-version }}"
107+
unity_version="${unity_version//'*'/x}"
108+
echo "name=${{ matrix.os }}-${unity_version}-${{ matrix.build-target }}-tests-batch-utp-logs" >> $GITHUB_OUTPUT
109+
shell: bash
103110
- name: Run Unity UTP test batches
104111
if: ${{ steps.verify-project-path.outputs.RUN_BUILD == 'true' }}
105112
uses: ./.github/actions/run-unity-test-batch
106113
with:
107114
unity-project-path: ${{ env.UNITY_PROJECT_PATH }}
108115
build-target: ${{ matrix.build-target }}
109116
build-args: ${{ matrix.build-args }}
110-
artifact-name: ${{ matrix.os }}-${{ matrix.unity-version }}-${{ matrix.build-target }}-tests-batch-utp-logs
117+
artifact-name: ${{ steps.artifact-name.outputs.name }}
111118
- name: Update Android Target Sdk Version
112119
if: ${{ matrix.build-target == 'Android' }}
113120
run: |

0 commit comments

Comments
 (0)