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

24 lines
517 B
YAML
Raw Normal View History

2020-10-20 19:00:31 +08:00
name: Prettier
on:
push:
2021-02-20 20:13:24 +08:00
branches: [main]
2020-10-20 19:00:31 +08:00
jobs:
prettier:
runs-on: ubuntu-latest
2020-12-18 23:49:55 +08:00
if: github.repository == 'doocs/advanced-java'
2020-10-20 19:00:31 +08:00
steps:
2021-02-20 20:13:24 +08:00
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
2020-10-20 19:00:31 +08:00
2021-02-20 20:13:24 +08:00
- name: Prettify
uses: creyD/prettier_action@v3.3
with:
prettier_options: --write **/*.{md}
commit_message: "style: prettify code or document"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}