git.fiddlerwoaroof.com
.github/workflows/format.yml
ed9c3f43
 name: Format (prettier)
 
 on:
   push:
   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 }}