Weekly automated code cleanups

This commit is contained in:
Mercurio 2023-11-13 12:02:44 +01:00 committed by GitHub
parent 46d9d5db67
commit 911e53938b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

30
.github/workflows/cleanup.yml vendored Normal file
View file

@ -0,0 +1,30 @@
name: Dart Fix
on:
schedule:
- cron: '0 0 * * 1' # Every Monday at midnight UTC
jobs:
dart-fix:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Dart
uses: dart-lang/setup-dart@v2
- name: Get Dependencies
run: flutter pub get
- name: Run dart fix
run: dart fix --apply
- name: Commit and push changes
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git commit -m "[Chore] dart code actions"
git push