Skip to content

Commit

Permalink
Create format.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dfuchss authored Sep 20, 2024
1 parent 3737ad0 commit da4c163
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Format

on:
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Build project with gradle
uses: gradle/actions/setup-gradle@v4
- name: Format with Spotless
run: gradle spotlessApply
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Apply formatting changes

0 comments on commit da4c163

Please sign in to comment.