@@ -52,36 +52,37 @@ jobs:
5252 repository : ${{ inputs.repo }}
5353
5454 - name : 🌐 Downloading .clang-format from libhal
55+ working-directory : ${{ inputs.dir }}
5556 run : wget https://raw.githubusercontent.com/libhal/libhal/main/.clang-format -O .clang-format
5657
5758 - name : 🧹 Format Check `include/` directory
5859 uses : jidicula/clang-format-action@v4.11.0
5960 if : always()
6061 with :
6162 clang-format-version : " 18"
62- check-path : . /include
63+ check-path : ${{ inputs.dir }} /include
6364 exclude-regex : " .*/third_party/.*"
6465
6566 - name : 🧹 Format Check `src/` directory
6667 uses : jidicula/clang-format-action@v4.11.0
6768 if : ${{ hashFiles(inputs.source_dir) != '' }}
6869 with :
6970 clang-format-version : " 18"
70- check-path : ${{ inputs.source_dir }}
71+ check-path : ${{ inputs.dir }}/${{ inputs. source_dir }}
7172 exclude-regex : " .*/third_party/.*"
7273
7374 - name : 🧹 Format Check `demos/` directory
7475 uses : jidicula/clang-format-action@v4.11.0
7576 if : ${{ hashFiles('./demos/') != '' }}
7677 with :
7778 clang-format-version : " 18"
78- check-path : . /demos/
79+ check-path : ${{ inputs.dir }} /demos
7980 exclude-regex : " .*/third_party/.*"
8081
8182 - name : 🧹 Format Check `test/` code
8283 uses : jidicula/clang-format-action@v4.11.0
8384 if : always()
8485 with :
8586 clang-format-version : " 18"
86- check-path : . /tests
87+ check-path : ${{ inputs.dir }} /tests
8788 exclude-regex : " .*/third_party/.*"
0 commit comments