Skip to content

Commit

Permalink
check entire diff rather than each commit
Browse files Browse the repository at this point in the history
Signed-off-by: Ali Caglayan <alizter@gmail.com>

<!-- ps-id: f20d7036-af32-4dc7-8497-a4fc436e560e -->
  • Loading branch information
Alizter committed Mar 6, 2024
1 parent e75367b commit caccd39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/whitespace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit caccd39

Please sign in to comment.