diff --git a/.github/workflows/flutter_ci.yml b/.github/workflows/flutter_ci.yml index 4da8c97..d748f30 100644 --- a/.github/workflows/flutter_ci.yml +++ b/.github/workflows/flutter_ci.yml @@ -27,3 +27,14 @@ jobs: - name: Lint code run: cd frontend && flutter analyze + + - name: Reformat code + run: dart format . + + - name: Commit changes if any + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + git add . + git diff --cached --quiet || git commit -m "Auto-format: Applied Flutter formatting" + git push