From f132b306fbdc24959086f3bac5cf1f5ce6f2dd58 Mon Sep 17 00:00:00 2001 From: Gabriel Dupont-Francoeur Date: Mon, 27 Nov 2023 03:03:52 -0500 Subject: [PATCH] ci: Fix dirty checking --- .github/workflows/pull_request.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 15ad909..a11b621 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -29,8 +29,8 @@ jobs: run: ./mvnw spotless:apply -P pr - name: Push local changes if necessary run: | - [[ -z $(git status -s) ]] && WAS_DIRTY=true - [[ -n $(git status -s) ]] && WAS_DIRTY=false + [[ -z $(git status -s) ]] && WAS_DIRTY=false + [[ -n $(git status -s) ]] && WAS_DIRTY=true echo "WAS_DIRTY=$WAS_DIRTY" >> "$GITHUB_ENV" [[ $WAS_DIRTY = false ]] && exit 0 git config --global user.name "github-actions"