We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccd0718 commit f9de366Copy full SHA for f9de366
.github/workflows/spotless-check.yml
@@ -35,12 +35,10 @@ jobs:
35
36
- name: Run Spotless Check
37
run: ./gradlew spotlessCheck
38
+ continue-on-error: true
39
- - name: Run Spotless Apply and Check for Changes
40
- id: check_spotless
+ - name: Fail if Spotless Check Fails
41
+ if: failure()
42
run: |
- ./gradlew spotlessApply
43
- if ! git diff --exit-code; then
44
- echo "Spotless found formatting issues. Please run './gradlew spotlessApply' to fix them."
45
- exit 1
46
- fi
+ echo "Spotless found formatting issues. Please run './gradlew spotlessApply' to fix them."
+ exit 1
0 commit comments