2021-09-26 16:56:07 +08:00
|
|
|
name: Prettify
|
|
|
|
on: push
|
2020-10-24 17:27:29 +08:00
|
|
|
jobs:
|
|
|
|
prettier:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
ref: ${{ github.head_ref }}
|
|
|
|
|
|
|
|
- name: Prettify code
|
2021-03-02 17:25:05 +08:00
|
|
|
uses: creyD/prettier_action@v3.3
|
2020-10-24 17:27:29 +08:00
|
|
|
with:
|
2021-09-26 17:05:56 +08:00
|
|
|
prettier_options: --write **/*.{java,md}
|
2021-09-26 16:56:07 +08:00
|
|
|
commit_message: 'Prettify code'
|
2020-10-24 17:27:29 +08:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|