Skip to content

fix: spotless action #3

fix: spotless action

fix: spotless action #3

Workflow file for this run

name: Run spotless
on: [push, workflow_dispatch]
jobs:
build:
strategy:
matrix:
java:
- 21
runs-on: ubuntu-24.04
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: setup jdk ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: "microsoft"
- name: setup gradle
uses: gradle/actions/setup-gradle@v4
- name: make gradle wrapper executable
run: chmod +x ./gradlew
- name: apply spotless
run: ./gradlew spotlessApply
- name: Push
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
git add .
git commit -m "chore: Apply Spotless"
git push