Skip to content

Commit 8bcfb0f

Browse files
committed
ci: skip clang-format for third-party/ files
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
1 parent 8e4b2f0 commit 8bcfb0f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/github-actions-format-on-push.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ jobs:
2323
run: |
2424
clang-format --version
2525
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
26-
if [[ "${file##*.}" =~ ^(h|C|cc|cp|cpp|c++|CPP|cxx|hh)$ && "${file}" != "src/sta/"* && "${file}" != "src/odb/src/codeGenerator/"* ]]; then
26+
if [[ "${file##*.}" =~ ^(h|C|cc|cp|cpp|c++|CPP|cxx|hh)$ \
27+
&& "${file}" != "src/sta/"* \
28+
&& "${file}" != "src/odb/src/codeGenerator/"* \
29+
&& "${file}" != "third-party/"* ]]; then
2730
clang-format --dry-run --Werror $file
2831
fi
2932
done

0 commit comments

Comments
 (0)