Skip to content

Commit

Permalink
Merge pull request #892 from linwumingshi/ci/spring-format
Browse files Browse the repository at this point in the history
Ensure Java format validation reports failure explicitly
  • Loading branch information
shalousun authored Aug 17, 2024
2 parents db189b9 + 4bcd9fc commit f8eee3d
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/spring-javaformat-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,4 @@ jobs:
id: format-validation
run: |
echo "Executing Spring code format validation"
mvn spring-javaformat:validate
continue-on-error: true

- name: Check format validation result
if: always()
run: |
echo "Checking format validation result"
if [ ${{ steps.format-validation.outcome }} == 'failure' ]; then
echo "Spring code format validation failed, please run `spring-javaformat:apply` to fix and resubmit"
exit 1
fi
mvn spring-javaformat:validate

0 comments on commit f8eee3d

Please sign in to comment.