Skip to content

Commit 8aee74b

Browse files
committed
Try GITHUB_OUTPUT try 2.
1 parent e4f498e commit 8aee74b

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

.github/workflows/datachannel_echo-test.yml

+15-8
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,18 @@ jobs:
1717
# Job Description: Performs the Data Channel Test between each combination of the client and server for each library.
1818
interop-tests:
1919
runs-on: ubuntu-latest
20+
# See https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#using-job-outputs-in-a-matrix-job
21+
outputs:
22+
# Ridiculouse brute force but still better than upload/download unqiuely named artifacts.
23+
output_1: ${{ steps.gen_output.outputs.output_1 }}
24+
output_2: ${{ steps.gen_output.outputs.output_2 }}
25+
output_3: ${{ steps.gen_output.outputs.output_3 }}
26+
output_4: ${{ steps.gen_output.outputs.output_4 }}
27+
output_5: ${{ steps.gen_output.outputs.output_5 }}
28+
output_6: ${{ steps.gen_output.outputs.output_6 }}
29+
output_7: ${{ steps.gen_output.outputs.output_7 }}
30+
output_8: ${{ steps.gen_output.outputs.output_8 }}
31+
output_9: ${{ steps.gen_output.outputs.output_9 }}
2032
strategy:
2133
matrix:
2234
server: ["libdatachannel", "sipsorcery", "werift"]
@@ -50,11 +62,6 @@ jobs:
5062
echo "Result for ${{ matrix.server }} server and ${{ matrix.client }} client, outcome ${{ steps.check_connection.outcome }}, result ${{ steps.check_connection.outputs.TEST_RESULT }}."
5163
echo "RESULTS+=['${{ matrix.server }}','${{ matrix.client }}','${{ steps.check_connection.outputs.TEST_RESULT }}']" >> $GITHUB_OUTPUT
5264
53-
- name: Show step output results
54-
id: collect_results
55-
run: |
56-
echo "results=${{ steps.collect_results.outputs.results }}"
57-
5865
# Job Description: Collates the results of the interop tests into a mark down table.
5966
collate:
6067
runs-on: ubuntu-latest
@@ -63,15 +70,15 @@ jobs:
6370
- uses: actions/checkout@v2
6471
with:
6572
ref: testresults
66-
- name: Create results file from results.txt
73+
- name: Create results file from interop test outputs
6774
run: |
6875
echo "Collating results from:"
69-
echo "results=${{ steps.collect_results.outputs.results }}"
76+
echo "results=${{ needs.interop-tests.outputs }}"
7077
echo "| Server | Client | Test Result |" > DataChannel_Echo_test_results.md
7178
echo "|--------|--------|-------------|" >> DataChannel_Echo_test_results.md
7279
7380
# Read results from the job output
74-
IFS=' ' read -r -a results_array <<< "${{ steps.collect_results.outputs.results }}"
81+
IFS=' ' read -r -a results_array <<< "${{ needs.interop-tests.outputs }}"
7582
for result in "${results_array[@]}"; do
7683
echo "| ${result[0]} | ${result[1]} | ${result[2]} |" >> DataChannel_Echo_test_results.md
7784
done

0 commit comments

Comments
 (0)