Skip to content

Commit e5af9c5

Browse files
committed
fixup
1 parent 1fa2e11 commit e5af9c5

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/format_check.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ jobs:
2525
filter-format-check:
2626
runs-on: ubuntu-latest
2727
outputs:
28-
any_changed: ${{ steps.changed-files.outputs.any_changed }}
28+
any_changed: ${{ steps.changed-files.outputs.core_any_changed == 'true' ||
29+
steps.changed-files.outputs.loader_any_changed == 'true' ||
30+
steps.changed-files.outputs.libraries_any_changed == 'true' }}
2931
core_any_changed: ${{ steps.changed-files.outputs.core_any_changed }}
3032
loader_any_changed: ${{ steps.changed-files.outputs.loader_any_changed }}
3133
libraries_any_changed: ${{ steps.changed-files.outputs.libraries_any_changed }}
@@ -36,13 +38,15 @@ jobs:
3638
with:
3739
files_yaml: |
3840
core:
39-
- cores/arduino/**.{c,cpp,h,hpp}
41+
- cores/arduino/*.{c,cpp,h,hpp}
42+
- cores/arduino/**/*.{c,cpp,h,hpp}
4043
- '!cores/arduino/api/**'
4144
loader:
42-
- loader/**.{c,cpp,h,hpp}
45+
- loader/*.{c,cpp,h,hpp}
46+
- loader/**/*.{c,cpp,h,hpp}
4347
- '!loader/llext_exports.c'
4448
libraries:
45-
- libraries/**.{c,cpp,h,hpp}
49+
- libraries/**/*.{c,cpp,h,hpp}
4650
- '!libraries/examples/**'
4751
- '!libraries/extras/**'
4852
- '!libraries/ea_malloc/**'
@@ -51,7 +55,7 @@ jobs:
5155
runs-on: ubuntu-latest
5256
needs:
5357
- filter-format-check
54-
if: needs.filter-format-check.outputs.any_changed == 'true'
58+
if: needs.filter-format-check.outputs.any_changed
5559
strategy:
5660
matrix:
5761
path:
@@ -67,6 +71,11 @@ jobs:
6771
fail-fast: false
6872

6973
steps:
74+
- name: Debug changed files
75+
run: |
76+
echo "Any changed: ${{ needs.filter-format-check.outputs.any_changed }}"
77+
echo "${{ matrix.path['name'] }} changed: ${{ needs.filter-format-check.outputs[format('{0}_any_changed', matrix.path['name'])] }}}}"
78+
7079
- name: Checkout code
7180
if: needs.filter-format-check.outputs[format('{0}_any_changed', matrix.path['name'])] == 'true'
7281
uses: actions/checkout@v4

0 commit comments

Comments
 (0)