@@ -63,49 +63,49 @@ jobs:
6363 run : |
6464 if [[ "${{ github.event.inputs.test_pull_request }}" == *"label-quick-packaging" ]]; then
6565 # Triggered by build_starter SDK workflow.
66- echo "::set-output name= trigger:: label_trigger"
67- echo "::set-output name= requested_tests:: auto"
68- echo "::set-output name= github_ref:: ${{github.sha}}"
69- echo "::set-output name= pr_number:: $(echo ${{ github.event.inputs.test_pull_request }} | cut -d: -f1)"
66+ echo "trigger= label_trigger" >> $GITHUB_OUTPUT
67+ echo "requested_tests= auto" >> $GITHUB_OUTPUT
68+ echo "github_ref= ${{github.sha}}" >> $GITHUB_OUTPUT
69+ echo "pr_number= $(echo ${{ github.event.inputs.test_pull_request }} | cut -d: -f1)" >> $GITHUB_OUTPUT
7070 elif [[ "${{ github.event.inputs.test_pull_request }}" == *"label-full-packaging" ]]; then
7171 # Triggered by build_starter SDK workflow.
72- echo "::set-output name= trigger:: label_trigger"
73- echo "::set-output name= requested_tests:: expanded"
74- echo "::set-output name= github_ref:: ${{github.sha}}"
75- echo "::set-output name= pr_number:: $(echo ${{ github.event.inputs.test_pull_request }} | cut -d: -f1)"
72+ echo "trigger= label_trigger" >> $GITHUB_OUTPUT
73+ echo "requested_tests= expanded" >> $GITHUB_OUTPUT
74+ echo "github_ref= ${{github.sha}}" >> $GITHUB_OUTPUT
75+ echo "pr_number= $(echo ${{ github.event.inputs.test_pull_request }} | cut -d: -f1)" >> $GITHUB_OUTPUT
7676 elif [[ "${{ github.event.inputs.test_pull_request }}" == *"pr-close-packaging" ]]; then
7777 # Triggered by build_starter SDK workflow.
78- echo "::set-output name= trigger:: postsubmit_trigger"
79- echo "::set-output name= requested_tests:: auto"
80- echo "::set-output name= github_ref:: ${{github.sha}}"
81- echo "::set-output name= pr_number:: $(echo ${{ github.event.inputs.test_pull_request }} | cut -d: -f1)"
78+ echo "trigger= postsubmit_trigger" >> $GITHUB_OUTPUT
79+ echo "requested_tests= auto" >> $GITHUB_OUTPUT
80+ echo "github_ref= ${{github.sha}}" >> $GITHUB_OUTPUT
81+ echo "pr_number= $(echo ${{ github.event.inputs.test_pull_request }} | cut -d: -f1)" >> $GITHUB_OUTPUT
8282 elif [[ "${{ github.event.inputs.test_pull_request }}" == "nightly-packaging" ]]; then
8383 # Triggered by build_starter SDK workflow.
84- echo "::set-output name= trigger:: scheduled_trigger"
85- echo "::set-output name= requested_tests:: expanded"
86- echo "::set-output name= github_ref:: ${{github.sha}}"
84+ echo "trigger= scheduled_trigger" >> $GITHUB_OUTPUT
85+ echo "requested_tests= expanded" >> $GITHUB_OUTPUT
86+ echo "github_ref= ${{github.sha}}" >> $GITHUB_OUTPUT
8787 elif [[ "${{ github.event.inputs.test_pull_request }}" == "1" ]]; then
8888 # Triggered by build_starter SDK workflow.
89- echo "::set-output name= trigger:: manual_trigger"
90- echo "::set-output name= requested_tests:: auto"
91- echo "::set-output name= github_ref:: ${{github.sha}}"
89+ echo "trigger= manual_trigger" >> $GITHUB_OUTPUT
90+ echo "requested_tests= auto" >> $GITHUB_OUTPUT
91+ echo "github_ref= ${{github.sha}}" >> $GITHUB_OUTPUT
9292 else
9393 # Triggered manually
94- echo "::set-output name= trigger:: manual_trigger"
94+ echo "trigger= manual_trigger" >> $GITHUB_OUTPUT
9595 if [[ "${{ github.event.inputs.use_expanded_matrix }}" == "1" ]]; then
96- echo "::set-output name= requested_tests:: expanded"
96+ echo "requested_tests= expanded" >> $GITHUB_OUTPUT
9797 fi
9898 if [[ -z "${{github.event.inputs.test_pull_request}}" ]]; then
9999 # test_pull_request not specified
100- echo "::set-output name= github_ref:: ${{github.sha}}"
100+ echo "github_ref= ${{github.sha}}" >> $GITHUB_OUTPUT
101101 elif [[ "${{github.event.inputs.test_pull_request}}" == *:* ]]; then
102102 # If specified as pr:commit_hash, split them.
103- echo "::set-output name= github_ref:: $(echo ${{ github.event.inputs.test_pull_request }} | cut -d: -f2)"
104- echo "::set-output name= pr_number:: $(echo ${{ github.event.inputs.test_pull_request }} | cut -d: -f1)"
103+ echo "github_ref= $(echo ${{ github.event.inputs.test_pull_request }} | cut -d: -f2)" >> $GITHUB_OUTPUT
104+ echo "pr_number= $(echo ${{ github.event.inputs.test_pull_request }} | cut -d: -f1)" >> $GITHUB_OUTPUT
105105 else
106106 # Just the PR specified, use refs/pull/<number>/merge as the ref.
107- echo "::set-output name= github_ref:: refs/pull/${{github.event.inputs.test_pull_request}}/merge"
108- echo "::set-output name= pr_number:: ${{ github.event.inputs.test_pull_request }}"
107+ echo "github_ref= refs/pull/${{github.event.inputs.test_pull_request}}/merge" >> $GITHUB_OUTPUT
108+ echo "pr_number= ${{ github.event.inputs.test_pull_request }}" >> $GITHUB_OUTPUT
109109 fi
110110 fi
111111 - uses : actions/checkout@v3
@@ -140,10 +140,10 @@ jobs:
140140 fi
141141 # To feed input into the job matrix, we first need to convert to a JSON
142142 # list. Then we can use fromJson to define the field in the matrix for the tests job.
143- echo "::set-output name= apis:: $( python scripts/gha/print_matrix_configuration.py -c -w integration_tests -k apis -o "${{github.event.inputs.apis}}" ${TEST_MATRIX_PARAM} )"
144- echo "::set-output name= build_matrix:: $( python scripts/gha/print_matrix_configuration.py -build_matrix -unity_versions "${{github.event.inputs.unity_versions}}" -platforms "${{github.event.inputs.platforms}}" -os "${{github.event.inputs.build_os}}" -mobile_test_on "${{github.event.inputs.mobile_test_on}}" ${TEST_MATRIX_PARAM})"
145- echo "::set-output name= test_matrix:: $( python scripts/gha/print_matrix_configuration.py -test_matrix -unity_versions "${{github.event.inputs.unity_versions}}" -platforms "${{github.event.inputs.platforms}}" -os "${{github.event.inputs.build_os}}" -mobile_test_on "${{github.event.inputs.mobile_test_on}}" ${TEST_MATRIX_PARAM})"
146- echo "::set-output name= playmode_matrix:: $( python scripts/gha/print_matrix_configuration.py -playmode_matrix -unity_versions "${{github.event.inputs.unity_versions}}" -platforms "${{github.event.inputs.platforms}}" -os "${{github.event.inputs.build_os}}" ${TEST_MATRIX_PARAM})"
143+ echo "apis= $( python scripts/gha/print_matrix_configuration.py -c -w integration_tests -k apis -o "${{github.event.inputs.apis}}" ${TEST_MATRIX_PARAM} )" >> $GITHUB_OUTPUT
144+ echo "build_matrix= $( python scripts/gha/print_matrix_configuration.py -build_matrix -unity_versions "${{github.event.inputs.unity_versions}}" -platforms "${{github.event.inputs.platforms}}" -os "${{github.event.inputs.build_os}}" -mobile_test_on "${{github.event.inputs.mobile_test_on}}" ${TEST_MATRIX_PARAM})" >> $GITHUB_OUTPUT
145+ echo "test_matrix= $( python scripts/gha/print_matrix_configuration.py -test_matrix -unity_versions "${{github.event.inputs.unity_versions}}" -platforms "${{github.event.inputs.platforms}}" -os "${{github.event.inputs.build_os}}" -mobile_test_on "${{github.event.inputs.mobile_test_on}}" ${TEST_MATRIX_PARAM})" >> $GITHUB_OUTPUT
146+ echo "playmode_matrix= $( python scripts/gha/print_matrix_configuration.py -playmode_matrix -unity_versions "${{github.event.inputs.unity_versions}}" -platforms "${{github.event.inputs.platforms}}" -os "${{github.event.inputs.build_os}}" ${TEST_MATRIX_PARAM})" >> $GITHUB_OUTPUT
147147 - name : Update PR label and comment
148148 if : steps.set_outputs.outputs.pr_number
149149 run : |
@@ -168,8 +168,8 @@ jobs:
168168 steps :
169169 - id : matrix_info
170170 run : |
171- echo "::set-output name= info:: ${{ matrix.unity_version }}-${{matrix.os}}-${{ matrix.platform }}-${{ matrix.ios_sdk }}"
172- echo "::set-output name= artifact_suffix:: ${{ matrix.unity_version }}-${{matrix.os}}-${{ matrix.ios_sdk }}"
171+ echo "info= ${{ matrix.unity_version }}-${{matrix.os}}-${{ matrix.platform }}-${{ matrix.ios_sdk }}" >> $GITHUB_OUTPUT
172+ echo "artifact_suffix= ${{ matrix.unity_version }}-${{matrix.os}}-${{ matrix.ios_sdk }}" >> $GITHUB_OUTPUT
173173 - uses : actions/checkout@v3
174174 - name : Setup python
175175 uses : actions/setup-python@v4
@@ -344,7 +344,7 @@ jobs:
344344 steps :
345345 - id : matrix_info
346346 run : |
347- echo "::set-output name= info:: ${{ matrix.unity_version }}-${{matrix.os}}-Playmode-github_runner-${{ matrix.os }}"
347+ echo "info= ${{ matrix.unity_version }}-${{matrix.os}}-Playmode-github_runner-${{ matrix.os }}" >> $GITHUB_OUTPUT
348348 - uses : actions/checkout@v3
349349 - name : Setup python
350350 uses : actions/setup-python@v4
@@ -444,8 +444,8 @@ jobs:
444444 steps :
445445 - id : matrix_info
446446 run : |
447- echo "::set-output name= info:: ${{ matrix.unity_version }}-${{matrix.build_os}}-${{ matrix.platform }}-${{ matrix.test_device }}-${{ matrix.test_os }}"
448- echo "::set-output name= artifact_path:: testapps-${{ matrix.platform }}-${{ matrix.unity_version }}-${{matrix.build_os}}-${{ matrix.ios_sdk }}"
447+ echo "info= ${{ matrix.unity_version }}-${{matrix.build_os}}-${{ matrix.platform }}-${{ matrix.test_device }}-${{ matrix.test_os }}" >> $GITHUB_OUTPUT
448+ echo "artifact_path= testapps-${{ matrix.platform }}-${{ matrix.unity_version }}-${{matrix.build_os}}-${{ matrix.ios_sdk }}" >> $GITHUB_OUTPUT
449449 - uses : actions/checkout@v3
450450 with :
451451 ref : ${{needs.check_and_prepare.outputs.github_ref}}
0 commit comments