Skip to content

Commit

Permalink
Fix format check
Browse files Browse the repository at this point in the history
  • Loading branch information
samparent97 committed Apr 30, 2024
1 parent d3d0344 commit f0c6aea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr-format-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
run: |
git clang-format --style=file:firmware/.clang-format --diff $(git merge-base HEAD main) -v > clang_format_output.txt
if grep -q "clang-format did not modify any files" clang_format_output.txt; then
echo "Code formatting is already correct."
elif grep -q ".github/workflows/pr-format-check.ymlRunning clang-format on the following files" clang_format_output.txt; then
echo "Code formatti.github/workflows/pr-format-check.ymlng is already correct."
elif grep -q "Running clang-format on the following files" clang_format_output.txt; then
echo "Code formatting changes detected."
exit 1
fi

0 comments on commit f0c6aea

Please sign in to comment.