Skip to content

Commit aaa1cf3

Browse files
committed
use find
1 parent edaed5f commit aaa1cf3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/check_format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
sudo apt-get update
1414
sudo apt-get install clang-format
1515
- name: "Format Codes"
16-
run: shopt -s globstar && clang-format -i src/**/*.cpp src/**/*.h src/**/*.hpp
16+
run: find src/ -type f \( -name "*.cpp" -o -name "*.h" -o -name "*.hpp" \) -exec clang-format -i {} +
1717
- name: Check diff
1818
run: git diff --exit-code HEAD
1919
- name: Create Pull Request

0 commit comments

Comments
 (0)