From b37a15297353c87a8bb33df5a28e334bedccbbe8 Mon Sep 17 00:00:00 2001 From: Mathieu Sabarthes <91611760+MathieuSabarthes@users.noreply.github.com> Date: Wed, 1 Oct 2025 14:43:50 +0200 Subject: [PATCH] Create java-formatting.yml --- .github/workflows/java-formatting.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/java-formatting.yml diff --git a/.github/workflows/java-formatting.yml b/.github/workflows/java-formatting.yml new file mode 100644 index 0000000..6b49c21 --- /dev/null +++ b/.github/workflows/java-formatting.yml @@ -0,0 +1,20 @@ +# SPDX-FileCopyrightText: 2022 Free Software Foundation Europe e.V. +# +# SPDX-License-Identifier: CC0-1.0 +--- +name: Format + +on: [ push, pull_request ] + +jobs: + + formatting: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 # v2 minimum required + - uses: axel-op/googlejavaformat-action@v4 + with: + args: "--replace" + skip-commit: true + - name: Print diffs + run: git --no-pager diff --exit-code