advanced-java/.github/workflows/prettier.yml

23 lines
447 B
YAML
Raw Normal View History

2020-10-20 19:00:31 +08:00
name: Prettier
on:
push:
branches: [ main ]
2020-10-20 19:00:31 +08:00
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Prettify code
uses: creyD/prettier_action@v3.0
with:
prettier_options: --write **/*.{html,js,md}
commit_message: 'style: prettify code'
2020-10-20 19:00:31 +08:00
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}