diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index 68c2d6670c..a34ed662f0 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -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 !"