Skip to content

Commit

Permalink
Implement auto-formatting in action
Browse files Browse the repository at this point in the history
  • Loading branch information
V-X-L-U committed Jan 30, 2025
1 parent d1b8430 commit 75db684
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/flutter_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 75db684

Please sign in to comment.