Skip to content

Commit f5f4ae5

Browse files
authored
prettier markdown files action added (#322)
Signed-off-by: danielkubat <[email protected]>
1 parent 87e82cb commit f5f4ae5

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/prettier-md.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
# https://github.com/creyD/prettier_action
3+
name: Prettier markdown files
4+
5+
on:
6+
push:
7+
paths:
8+
- '**.md'
9+
10+
jobs:
11+
prettier-md:
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 1
14+
15+
steps:
16+
- name: Git checkout
17+
uses: actions/checkout@v2
18+
with:
19+
ref: ${{ github.head_ref }}
20+
21+
- name: Prettify code
22+
uses: creyD/[email protected]
23+
with:
24+
prettier_options: --write {**/*,*}.md

0 commit comments

Comments
 (0)