Skip to content

Commit

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

0 comments on commit 5f0fd1e

Please sign in to comment.