Skip to content

Commit

Permalink
Fix the format checking step
Browse files Browse the repository at this point in the history
  • Loading branch information
fkleedorfer committed Dec 6, 2024
1 parent 90306a8 commit fb2265a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@ jobs:
# Check formatting and exit early (with success) if format is ok
- name: Check formatting
run: mvn spotless:check && ( echo "Source was already formatted, nothing was touched." >> $GITHUB_STEP_SUMMARY ; exit 0 )
run: |
if mvn spotless:check; then
echo "Source was already formatted, nothing was touched." >> $GITHUB_STEP_SUMMARY
exit 0
else
echo "Sources need formatting, we'll do that now"
fi
# Apply formatting (changelog was touched)
- name: Apply formatting
Expand Down

0 comments on commit fb2265a

Please sign in to comment.