From 75db684681bd977b593b7e546bd1da576cd2beba Mon Sep 17 00:00:00 2001 From: Vallens Date: Wed, 29 Jan 2025 22:33:01 -0500 Subject: [PATCH] Implement auto-formatting in action --- .github/workflows/flutter_ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) 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