From caccd39dd17ae61f1eb7662c6dca65cf63f56d74 Mon Sep 17 00:00:00 2001 From: Ali Caglayan Date: Wed, 6 Mar 2024 23:44:41 +0100 Subject: [PATCH] check entire diff rather than each commit Signed-off-by: Ali Caglayan --- .github/workflows/whitespace.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/whitespace.yml b/.github/workflows/whitespace.yml index cde1f5c12d9..7b98c46ff08 100644 --- a/.github/workflows/whitespace.yml +++ b/.github/workflows/whitespace.yml @@ -71,7 +71,7 @@ jobs: echo "${dash} ${etc}" ;; esac - done <<< "$(git log --check --pretty=format:"---% h% s" -${{github.event.pull_request.commits}})" + done <<< "$(git log --check --pretty=format:"---% h% s" -${{ github.event.before }}..${{ github.sha }} --diff-filter=M)" if [ -n "${log}" ]; then echo -e "${log}" >> $GITHUB_OUTPUT