Skip to content

Commit

Permalink
skip the 3rd-party folder check of clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeliao committed Jan 10, 2025
1 parent a4fdfc9 commit 7ffb0d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/lint/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ runs:
set -e -o pipefail
# On pull requests, HEAD^1 will always be the merge base, so consider that diff for formatting.
git diff -U0 --no-color HEAD^1 | clang-format-diff-16 -p1 | tee ${HOME}/clang-diff
git diff -U0 --no-color HEAD^1 -- ':(exclude)3rd-party/' | clang-format-diff-16 -p1 | tee ${HOME}/clang-diff
if [ "$( stat --printf='%s' ${HOME}/clang-diff )" -ne 0 ]; then
echo "##[error] Please apply the above diff to correct formatting"
exit 1
Expand Down

0 comments on commit 7ffb0d5

Please sign in to comment.