md/.github/workflows/prettier.yml

23 lines
480 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
uses: creyD/prettier_action@v3.3
with:
prettier_options: --write **/*.{html,js,md,vue,less,css}
commit_message: "style: prettify code"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}