Skip to content

Commit

Permalink
One more fix
Browse files Browse the repository at this point in the history
  • Loading branch information
llvm-beanz committed Sep 21, 2023
1 parent ef67dca commit d44c29c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/clang-format-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
PR_NUMBER: ${{ github.event.number }}
GH_TOKEN: ${{ github.token }}
run: |
echo Comparing $GITHUB_REF vs HEAD
echo Comparing $PR_NUMBER vs target branch
git fetch origin refs/pull/$PR_NUMBER/head:pull/$PR_NUMBER
git diff -U0 --no-color origin/$GITHUB_REF..pull/$PR_NUMBER | clang-format-diff -p1 | tee format.diff
git diff -U0 --no-color HEAD..pull/$PR_NUMBER | clang-format-diff -p1 | tee format.diff
if [ -s "format.diff" ]
then
echo PR contains clang-format violations. First 50 lines of the diff: >> message.txt
Expand Down

0 comments on commit d44c29c

Please sign in to comment.