Skip to content

Update format.yml

Update format.yml #47

Workflow file for this run

name: Format
on:
push:
branches: [ main ]
jobs:
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3 # v2 minimum required
- name: Prettier Java Format
uses: tsar-boomba/prettier-java-format-action@main
with:
prettier-args: '--tab-width 2 --write' # See: https://prettier.io/docs/en/options.html
files: '**/*.java'
commit: 'true'
github-username: 'mikebarkmin'
commit-message: 'Format Java Code'