Add an action to automatically fix code styles

This commit is contained in:
Matt Isenhower 2024-03-16 21:54:52 -07:00
parent 0cd1e40da2
commit 24be6a4d8e

25
.github/workflows/fix-code-styles.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Fix code styles
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- run: npm ci
- run: npm run lint-fix
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Fix styling