Skip to content

Commit bc62479

Browse files
committed
fix
1 parent 7ca628f commit bc62479

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/boards.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
runs-on: ubuntu-latest
3131

3232
outputs:
33+
test-mode: ${{ env.TEST_MODE }}
3334
test-chunks: ${{ steps.set-test-chunks.outputs.test-chunks }}
3435

3536
steps:
@@ -42,8 +43,10 @@ jobs:
4243
- name: Determine test mode and find boards
4344
run: |
4445
if [ "${{ github.event_name }}" = "pull_request" ]; then
46+
echo "TEST_MODE=new" >> "$GITHUB_ENV"
4547
bash .github/scripts/find_boards.sh new ${{ github.repository }} ${{github.base_ref}}
4648
else
49+
echo "TEST_MODE=all" >> "$GITHUB_ENV"
4750
bash .github/scripts/find_boards.sh all
4851
fi
4952
@@ -78,6 +81,7 @@ jobs:
7881
FQBN: ${{ toJSON(matrix.chunk) }}
7982

8083
- name: Check if build.board is uppercase
84+
if: ${{ env.TEST_MODE == 'new' }}
8185
run: |
8286
# Read FQBNs from the JSON file and check each one
8387
invalid_boards=""

0 commit comments

Comments
 (0)