Skip to content

A local-first personal finance app

Add GitHub Actions workflow for automatic code formatting (#5157)

Matiss Janis Aboltinsd27d62b5fc2c
diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml
new file mode 100644
index 0000000000..daace15825
--- /dev/null
+++ b/.github/workflows/autofix.yml
@@ -0,0 +1,23 @@
+name: autofix.ci
+
+defaults:
+ run:
+ shell: bash
+
+on:
+ pull_request:
+ types: [opened, synchronize, reopened, ready_for_review]
+
+permissions:
+ contents: read
+
+jobs:
+ autofix:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - name: Set up environment
+ uses: ./.github/actions/setup
+ - name: Format code
+ run: yarn lint:fix
+ - uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27
diff --git a/upcoming-release-notes/5157.md b/upcoming-release-notes/5157.md
new file mode 100644
index 0000000000..233d05f112
--- /dev/null
+++ b/upcoming-release-notes/5157.md
@@ -0,0 +1,6 @@
+---
+category: Maintenance
+authors: [MatissJanis]
+---
+
+Add GitHub Actions workflow for automatic code formatting