From ad330e326c527a42378e2c5b6fadfc02a2f553af Mon Sep 17 00:00:00 2001 From: Sally Young Date: Tue, 20 Aug 2024 17:44:15 +0100 Subject: [PATCH] Ignore dirty submodules --- .github/workflows/TestStatic.yml | 2 +- tasks/test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/TestStatic.yml b/.github/workflows/TestStatic.yml index b6ce8221..9f0651d3 100644 --- a/.github/workflows/TestStatic.yml +++ b/.github/workflows/TestStatic.yml @@ -79,7 +79,7 @@ jobs: - name: Test for untracked and modified files run: | - if [ "${{ steps.test_untracked.outcome }}" != "failure"]; then + if [ "${{ steps.test_untracked.outcome }}" != "failure" ]; then exit 1 fi git add . diff --git a/tasks/test.yml b/tasks/test.yml index 5ac74dfc..d5277286 100644 --- a/tasks/test.yml +++ b/tasks/test.yml @@ -186,7 +186,7 @@ tasks: desc: Checks for any untracked files in git cmds: - | - if [ "$(git status -s)" != "" ]; then + if [ "$(git status -s --ignore-submodules=dirty)" != "" ]; then git status -s --ignore-submodules=dirty echo "Untracked changes detected - please rectify or add the files to your .gitignore" exit 1