Skip to content

Commit 52d4424

Browse files
committed
feat: add prettier workflow
1 parent 57d91c1 commit 52d4424

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/prettier_action@v3.0
21+
with:
22+
prettier_options: --write **/*.{js,c,cpp,go,rb,java,cs,py,scala,md}
23+
commit_message: 'docs: prettify code'
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)