2023-07-25 02:44:35 +02:00

23 lines
492 B
YAML

name: Prettier
on:
pull_request:
push:
branches: [main]
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.head_ref }}
- name: Run prettier
uses: creyD/prettier_action@v4.3
with:
commit_message: "style: format code with prettier"
prettier_options: "--write styles/**/*.css"