18
18
runs-on : ubuntu-latest
19
19
20
20
outputs :
21
- test-mode : ${{ env.TEST_MODE }}
21
+ test-mode : ${{ steps.set-test-chunks.outputs.test-mode }}
22
22
test-chunks : ${{ steps.set-test-chunks.outputs.test-chunks }}
23
23
24
24
steps :
@@ -31,10 +31,10 @@ jobs:
31
31
- name : Determine test mode and find boards
32
32
run : |
33
33
if [ "${{ github.event_name }}" = "pull_request" ]; then
34
- echo "TEST_MODE =new" >> "$GITHUB_ENV "
34
+ echo "test-mode =new" >> "$GITHUB_OUTPUT "
35
35
bash .github/scripts/find_boards.sh new ${{ github.repository }} ${{github.base_ref}}
36
36
else
37
- echo "TEST_MODE =all" >> "$GITHUB_ENV "
37
+ echo "test-mode =all" >> "$GITHUB_OUTPUT "
38
38
bash .github/scripts/find_boards.sh all
39
39
fi
40
40
70
70
FQBN : ${{ toJSON(matrix.chunk) }}
71
71
72
72
- name : Check if build.board is uppercase
73
- if : ${{ env.TEST_MODE == 'new' }}
73
+ if : ${{ needs.setup-chunks.outputs.test-mode == 'new' }}
74
74
run : |
75
75
# Read FQBNs from the JSON file and check each one
76
76
invalid_boards=""
@@ -117,7 +117,7 @@ jobs:
117
117
- name : Run CodeQL Analysis
118
118
uses : github/codeql-action/analyze@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
119
119
with :
120
- category : " Boards Test: ${{ env.TEST_MODE }} chunk ${{ matrix.id }}"
120
+ category : " Boards Test: ${{ needs.setup-chunks.outputs.test-mode }} chunk ${{ matrix.id }}"
121
121
output : sarif-results
122
122
upload : failure-only
123
123
@@ -134,5 +134,5 @@ jobs:
134
134
uses : github/codeql-action/upload-sarif@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
135
135
with :
136
136
sarif_file : sarif-results/cpp.sarif
137
- category : " Boards Test: ${{ env.TEST_MODE }} chunk ${{ matrix.id }}"
137
+ category : " Boards Test: ${{ needs.setup-chunks.outputs.test-mode }} chunk ${{ matrix.id }}"
138
138
0 commit comments