Skip to content

Commit

Permalink
Show a descriptive Fix of the styleguide errors
Browse files Browse the repository at this point in the history
Signed-off-by: Alfredo Gutierrez <[email protected]>
  • Loading branch information
AlfredoG87 committed Jul 11, 2024
1 parent ccd0718 commit f9de366
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/spotless-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,10 @@ jobs:
- name: Run Spotless Check
run: ./gradlew spotlessCheck
continue-on-error: true

- name: Run Spotless Apply and Check for Changes
id: check_spotless
- name: Fail if Spotless Check Fails
if: failure()
run: |
./gradlew spotlessApply
if ! git diff --exit-code; then
echo "Spotless found formatting issues. Please run './gradlew spotlessApply' to fix them."
exit 1
fi
echo "Spotless found formatting issues. Please run './gradlew spotlessApply' to fix them."
exit 1

0 comments on commit f9de366

Please sign in to comment.