Skip to content

Commit 2952a87

Browse files
committed
feat: add prettier workflow
1 parent d96e6fe commit 2952a87

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/prettier.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Prettier
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
prettier:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
with:
17+
ref: ${{ github.head_ref }}
18+
19+
- name: Prettify code
20+
uses: creyD/[email protected]
21+
with:
22+
prettier_options: --write **/*.{html,js,md}
23+
commit_message: 'docs: prettify code'
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)