From aedbe1042a95448b527da1a253b440e4b2e41121 Mon Sep 17 00:00:00 2001 From: devyu <80163835+yubin21@users.noreply.github.com> Date: Wed, 16 Aug 2023 22:11:41 +0900 Subject: [PATCH] Update google java format.yml --- .github/workflows/google java format.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/google java format.yml b/.github/workflows/google java format.yml index b3c6b1e..94a537c 100644 --- a/.github/workflows/google java format.yml +++ b/.github/workflows/google java format.yml @@ -5,9 +5,12 @@ jobs: formatting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: axel-op/googlejavaformat-action@v3 + - uses: actions/checkout@v3 + - name: Check formatting + id: format-check + uses: axel-op/googlejavaformat-action@v3 with: - args: "--fix-imports-only" - commit-message: "format: Google Java Format" - github-token: ${{ secrets.GH_TOKEN }} + args: "--set-exit-if-changed --fix-imports-only" + github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Print diffs + run: git --no-pager diff --exit-code