ci: clang-format, filter out delete files

This commit is contained in:
Mizux Seiha
2020-10-16 13:12:03 +02:00
parent fd8bfcb4e1
commit e68cb9febd

View File

@@ -21,4 +21,4 @@ jobs:
run: docker run --rm --init -v $(pwd):/repo linter:latest clang-format --help
- name: Check current commit
run: docker run --rm --init -v $(pwd):/repo -w /repo linter:latest sh -c "git diff --name-only FETCH_HEAD | grep '\.c$\|\.h$\|\.cc$\|\.java$' | xargs clang-format --verbose --style=file --dry-run --Werror "
run: docker run --rm --init -v $(pwd):/repo -w /repo linter:latest sh -c "git diff --diff-filter=d --name-only FETCH_HEAD | grep '\.c$\|\.h$\|\.cc$\|\.java$' | xargs clang-format --verbose --style=file --dry-run --Werror "