Skip to content

Commit

Permalink
Update clang_format.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
roboticvedant authored Oct 6, 2024
1 parent 4cd7cc8 commit 7bfb487
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/clang_format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ jobs:
- name: Install clang-format
run: sudo apt-get install -y clang-format

- name: Run clang-format
- name: Run clang-format in Src directory
run: |
chmod +x ./tools/clang_format.sh
./tools/clang_format.sh
SRC_DIR="motor_controller/motor_controller/Src"
# Run clang-format on all .c, .cpp, .h, .hpp files in the specified directory
find $SRC_DIR -regex '.*\.\(c\|cpp\|h\|hpp\)' -exec clang-format -i {} \;
echo "Code formatted using clang-format in $SRC_DIR."
- name: Commit and Push changes
run: |
Expand Down

0 comments on commit 7bfb487

Please sign in to comment.