Skip to content

Commit

Permalink
Update pr-format-check.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Micnasr authored Mar 27, 2024
1 parent 5f0fd1e commit c55a6d0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/pr-format-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ jobs:
- name: Check for changes
id: check_changes
run: |
git diff -v --exit-code -- '*.cpp' '*.h' || (echo "Code is not formatted properly. Please run clang-format and commit the changes." && exit 1)
if git diff -v --exit-code -- '*.cpp' '*.h'; then
echo "Code is properly formatted."
else
echo "Code is not formatted properly. Please run clang-format and commit the changes."
exit 1
fi
- name: Complete
if: steps.check_changes.outcome == 'success'
Expand Down

0 comments on commit c55a6d0

Please sign in to comment.