custom error message #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Code format check | |
on: [ workflow_dispatch, push ] | |
jobs: | |
check-format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Check code formatting | |
run: ./gradlew spotlessCheck || echo "::error title=Format check failed::Run ./gradlew spotlessApply to fix." && exit 1 | |