From ee53f41aeef89869671f082776604e4271b21087 Mon Sep 17 00:00:00 2001 From: zhanglinjing Date: Wed, 4 Dec 2024 09:01:41 +0100 Subject: [PATCH] cicd: show diff on failure for formatting --- .github/workflows/pre-commit.yaml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml index e3ea7e8f..54e95179 100644 --- a/.github/workflows/pre-commit.yaml +++ b/.github/workflows/pre-commit.yaml @@ -25,10 +25,4 @@ jobs: run: pip install pre-commit - name: Run pre-commit - run: pre-commit run --all-files || true - - - name: Check for formatting issues - if: failure() - run: | - echo "The following files do not meet clang-format standards:" - git diff --name-only --diff-filter=M \ No newline at end of file + run: pre-commit run --all-files --show-diff-on-failure