From e29461db65c24a33b4dc30f7653e86e50787cdf8 Mon Sep 17 00:00:00 2001 From: Johannes Vedder Date: Mon, 22 Jul 2024 21:16:03 +0200 Subject: [PATCH] test --- .github/workflows/linter.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 3fd8c7e9c..9522e032a 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -22,7 +22,16 @@ jobs: - name: Echo files with missing newline run: | echo "Files with missing newline:" - git diff --name-only + git diff + + - name: Check if working tree is dirty + run: | + if [ -n "$(git status --porcelain)" ]; then + echo "Working tree is dirty" + exit 1 + else + echo "Working tree is clean" + fi - name: Commit changes if any uses: stefanzweifel/git-auto-commit-action@v5