Skip to content

Fixed formatting CI/CD #11

Fixed formatting CI/CD

Fixed formatting CI/CD #11

name: Format
on:
pull_request:
branches: [ main ]
jobs:
format-code:
name: format java code
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Run formatting
uses: axel-op/googlejavaformat-action@v3
with:
args: "--replace"
skip-commit: true
- name: Print diffs

Check failure on line 23 in .github/workflows/android_format.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/android_format.yml

Invalid workflow file

You have an error in your yaml syntax on line 23
run: git --no-pager diff
- name: Return
run: exit 0