Skip to content

Commit 3d7a6cb

Browse files
authored
feat: add new workflow
1 parent 0cc2808 commit 3d7a6cb

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
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
- Development
9+
10+
jobs:
11+
prettier:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
with:
18+
ref: ${{ github.head_ref }}
19+
20+
- name: Prettify code
21+
uses: creyD/[email protected]
22+
with:
23+
prettier_options: --write **/*.{java,md}
24+
commit_message: 'feat: prettify code'
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)