Skip to content

Commit a183980

Browse files
committed
fix
1 parent 1d2b799 commit a183980

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/boards.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919

2020
outputs:
21-
test-mode: ${{ env.TEST_MODE }}
21+
test-mode: ${{ steps.set-test-chunks.outputs.test-mode }}
2222
test-chunks: ${{ steps.set-test-chunks.outputs.test-chunks }}
2323

2424
steps:
@@ -31,10 +31,10 @@ jobs:
3131
- name: Determine test mode and find boards
3232
run: |
3333
if [ "${{ github.event_name }}" = "pull_request" ]; then
34-
echo "TEST_MODE=new" >> "$GITHUB_ENV"
34+
echo "test-mode=new" >> "$GITHUB_OUTPUT"
3535
bash .github/scripts/find_boards.sh new ${{ github.repository }} ${{github.base_ref}}
3636
else
37-
echo "TEST_MODE=all" >> "$GITHUB_ENV"
37+
echo "test-mode=all" >> "$GITHUB_OUTPUT"
3838
bash .github/scripts/find_boards.sh all
3939
fi
4040
@@ -70,7 +70,7 @@ jobs:
7070
FQBN: ${{ toJSON(matrix.chunk) }}
7171

7272
- name: Check if build.board is uppercase
73-
if: ${{ env.TEST_MODE == 'new' }}
73+
if: ${{ needs.setup-chunks.outputs.test-mode == 'new' }}
7474
run: |
7575
# Read FQBNs from the JSON file and check each one
7676
invalid_boards=""
@@ -117,7 +117,7 @@ jobs:
117117
- name: Run CodeQL Analysis
118118
uses: github/codeql-action/analyze@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
119119
with:
120-
category: "Boards Test: ${{ env.TEST_MODE }} chunk ${{ matrix.id }}"
120+
category: "Boards Test: ${{ needs.setup-chunks.outputs.test-mode }} chunk ${{ matrix.id }}"
121121
output: sarif-results
122122
upload: failure-only
123123

@@ -134,5 +134,5 @@ jobs:
134134
uses: github/codeql-action/upload-sarif@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
135135
with:
136136
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 }}"
138138

0 commit comments

Comments
 (0)