git.fiddlerwoaroof.com
Raw Blame History
name: Format (prettier)

on:
  push:
  merge_group:
  pull_request:
    paths:
      - "**.css"
      - "**.js"
      - "**.json"

jobs:
  prettier:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          ref: ${{ github.head_ref }}


      - name: Install
        run: npm ci
        env:
          CI: true

      - name: Run formatter
        run: npm run format

      - uses: stefanzweifel/git-auto-commit-action@v4
        with:
          commit_message: 'chore: reformat'
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}