use autofix.ci

This commit is contained in:
Okinea Dev 2025-07-09 17:45:15 +02:00
parent a00108bc0a
commit 5779b58502
No known key found for this signature in database
GPG key ID: BAC81899535644D5
2 changed files with 38 additions and 7 deletions

32
.github/workflows/format.yml vendored Normal file
View file

@ -0,0 +1,32 @@
name: autofix.ci # Must be named this for autofix.ci to work
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
permissions:
contents: read
jobs:
format:
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout
uses: actions/checkout@v4
- name: 🛠️ Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: 📦 Install Dependencies
run: npm install
- name: 🧹 Format
run: npm run format
- name: 💾 Commit
uses: autofix-ci/action@551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef