diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index d953303de..f6d1ed4c4 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -30,7 +30,7 @@ jobs: run: | git fetch origin ${{ github.base_ref }} - FILES=$(git diff --name-only \ + FILES=$(git diff --name-only --diff-filter=ACMR \ origin/${{ github.base_ref }}...HEAD \ | grep -E '\.(c|cc|cpp|cxx|h|hpp)$' || true)