2022-11-22 16:24:55 -06:00
|
|
|
name: Prettier Autoformatting
|
|
|
|
on:
|
2022-11-29 20:08:22 -06:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- "main"
|
2022-12-09 20:56:45 -06:00
|
|
|
- "testing"
|
2022-11-22 16:24:55 -06:00
|
|
|
pull_request:
|
2022-12-09 20:56:45 -06:00
|
|
|
branches: [main, testing]
|
2022-11-22 16:38:55 -06:00
|
|
|
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
|
2022-12-10 05:18:35 -06:00
|
|
|
uses: actions/checkout@v3
|
2022-12-01 20:31:49 -06:00
|
|
|
with:
|
2022-12-10 05:18:35 -06:00
|
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
2022-11-22 16:24:55 -06:00
|
|
|
- name: Prettify
|
2023-03-12 10:27:14 -05:00
|
|
|
uses: creyD/prettier_action@v4.3
|
2022-11-22 16:24:55 -06:00
|
|
|
with:
|
|
|
|
prettier_options: --write **/*.{js,html,css,md}
|