From: kosmirror <kos...@us...> - 2025-08-14 23:34:23
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "A pseudo Operating System for the Dreamcast.". The branch, master has been updated via a2dbeec5733a885c1f79345d01387b6be9346e32 (commit) from e655808a8d4b52640f0524210985f3978901d8c6 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit a2dbeec5733a885c1f79345d01387b6be9346e32 Author: Paul Cercueil <pa...@cr...> Date: Wed Aug 6 14:00:36 2025 +0200 CI: Add whitespace check Fail if some commits in a given pull request have whitespace issues. Signed-off-by: Paul Cercueil <pa...@cr...> ----------------------------------------------------------------------- Summary of changes: .github/workflows/whitespace.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/whitespace.yml diff --git a/.github/workflows/whitespace.yml b/.github/workflows/whitespace.yml new file mode 100644 index 00000000..79027b72 --- /dev/null +++ b/.github/workflows/whitespace.yml @@ -0,0 +1,18 @@ +name: Whitespace check + +on: pull_request + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Whitespace check + run: | + git fetch origin ${{ github.base_ref }}:${{ github.base_ref }} + git diff ${{ github.base_ref }} >/tmp/diff1.txt + git diff -w ${{ github.base_ref }} >/tmp/diff2.txt + diff /tmp/diff1.txt /tmp/diff2.txt >/dev/null hooks/post-receive -- A pseudo Operating System for the Dreamcast. |