2022-11-22 16:24:55 -06:00
|
|
|
name: Prettier Autoformatting
|
|
|
|
on:
|
2022-11-29 20:08:22 -06:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- "main"
|
2022-11-22 16:24:55 -06:00
|
|
|
pull_request:
|
2022-11-22 16:38:55 -06:00
|
|
|
branches: [main]
|
|
|
|
types: [opened, synchronize, closed]
|
2022-11-22 16:35:45 -06:00
|
|
|
|
2022-11-22 16:24:55 -06:00
|
|
|
jobs:
|
|
|
|
prettier:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Prettify
|
|
|
|
uses: creyD/prettier_action@v4.2
|
|
|
|
with:
|
2022-11-29 19:59:16 -06:00
|
|
|
ref: ${{ github.head_ref }}
|
2022-11-22 16:24:55 -06:00
|
|
|
prettier_options: --write **/*.{js,html,css,md}
|