From 70507eef2b8a78a9600770e9984db443515b4caf Mon Sep 17 00:00:00 2001 From: Florian OMNES <26088210+flomnes@users.noreply.github.com> Date: Tue, 25 Jun 2024 14:53:01 +0200 Subject: [PATCH] Print file names --- .github/workflows/clang-format.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 !"