name: Detect trailing whitespace on: [push, pull_request] jobs: whitespace: runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - name: Remove whitespace and check the diff run: | set -eu scripts/remove_trailing_whitespace.sh git diff >whitespace.patch cat whitespace.patch if [ $(wc -c