Skip to content

Update google java format.yml #9

Update google java format.yml

Update google java format.yml #9

name: google-java-format
on: [ push, pull_request ]
jobs:
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check formatting
uses: axel-op/googlejavaformat-action@v3
with:
args: "--replace"
github-token: ${{ secrets.GITHUB_TOKEN }}
skip-commit: true
files: "${{ env.GITHUB_WORKSPACE }}/src/main/java/com/haemil/backend/${{GITHUB_REF#refs/heads/}}/*"

Check failure on line 16 in .github/workflows/google java format.yml

View workflow run for this annotation

GitHub Actions / google-java-format

Invalid workflow file

The workflow is not valid. .github/workflows/google java format.yml (Line: 16, Col: 18): Unexpected symbol: 'GITHUB_REF#refs/heads/'. Located at position 1 within expression: GITHUB_REF#refs/heads/
- name: Print diffs
run: git --no-pager diff --exit-code