From 0f6cc4e044ed932fe0083e40e5e4e002e1300b4b Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Sat, 6 Mar 2021 08:36:46 +0100 Subject: [PATCH] Update code-formatting.yml --- .github/workflows/code-formatting.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/code-formatting.yml b/.github/workflows/code-formatting.yml index c679997179edb..9ed7d01b9cae5 100644 --- a/.github/workflows/code-formatting.yml +++ b/.github/workflows/code-formatting.yml @@ -47,7 +47,7 @@ jobs: # the branch we are merging into. BASE_COMMIT=$(git merge-base HEAD ${{ github.event.pull_request.base.sha }}) echo "Running clang-format against branch ${{ github.event.pull_request.base.ref }}, with hash ${{ github.event.pull_request.base.sha }}" - COMMIT_FILES=$(git diff --name-only $BASE_COMMIT | grep -ivE 'LinkDef|Utilities/PCG/') + COMMIT_FILES=$(git diff --diff-filter d --name-only $BASE_COMMIT | grep -ivE 'LinkDef|Utilities/PCG/') [ "X$COMMIT_FILES" = X ] && { echo "No files to check" ; exit 0; } RESULT_OUTPUT="$(git-clang-format --commit $BASE_COMMIT --diff --style file $COMMIT_FILES)"