Skip to content

Commit

Permalink
cicd: show diff on failure for formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
LinjingZhang committed Dec 4, 2024
1 parent 6c309fb commit ee53f41
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
run: pre-commit run --all-files --show-diff-on-failure

0 comments on commit ee53f41

Please sign in to comment.