Skip to content

Commit

Permalink
ci: Fix dirty checking
Browse files Browse the repository at this point in the history
  • Loading branch information
gdupontf committed Nov 27, 2023
1 parent 0f61b50 commit f132b30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f132b30

Please sign in to comment.