Skip to content

Commit

Permalink
Print file names
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes committed Jun 25, 2024
1 parent accb47c commit 70507ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ jobs:

- name: git diff
run: |
if [[ `git status --porcelain` ]]; then
echo "Code is not well formatted, boo !"
DIFF=`git status --porcelain`
if [[ $DIFF ]]; then
echo "The following files are not well formatted"
echo "$DIFF"
exit 1
else
echo "Code is well formatted, congrats !"
Expand Down

0 comments on commit 70507ee

Please sign in to comment.