Skip to content

Commit 8345eb2

Browse files
author
Dandelion Mané
authored
Add a prettier action (#198)
1 parent 9e4d8b4 commit 8345eb2

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/prettier.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
- name: Prettier Action
2+
uses: creyD/[email protected]
3+
4+
name: Auto Prettify
5+
6+
on:
7+
push:
8+
branches:
9+
- master
10+
11+
jobs:
12+
prettier:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
with:
19+
# Make sure the actual branch is checked out when running on pull requests
20+
ref: ${{ github.head_ref }}
21+
22+
- name: Prettify code
23+
uses: creyD/[email protected]
24+
with:
25+
# This part is also where you can pass other options, for example:
26+
prettier_options: --write **/*.{js,md}

0 commit comments

Comments
 (0)