md/.github/workflows/prettier.yml

21 lines
415 B
YAML
Raw Normal View History

2020-10-20 19:42:33 +08:00
name: Prettier
on:
push:
2021-02-26 10:47:40 +08:00
branches: [main]
2020-10-20 19:42:33 +08:00
jobs:
prettier:
runs-on: ubuntu-latest
steps:
2021-02-26 10:47:40 +08:00
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
2020-10-20 19:42:33 +08:00
2021-02-26 10:47:40 +08:00
- name: Prettify code
2021-11-04 09:41:41 +08:00
uses: creyD/prettier_action@v4.0
2021-02-26 10:47:40 +08:00
with:
prettier_options: --write **/*.{html,js,md,vue,less,css}
commit_message: "style: prettify code"