Skip to content

Commit

Permalink
feat: add prettier workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
yanglbme committed Oct 20, 2020
1 parent d96e6fe commit 2952a87
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Prettier

on:
pull_request:
push:
branches:
- master

jobs:
prettier:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}

- name: Prettify code
uses: creyD/[email protected]
with:
prettier_options: --write **/*.{html,js,md}
commit_message: 'docs: prettify code'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2952a87

Please sign in to comment.