LifeMate — Personal, Family & Learning Companion
ci: persist generated Flutter platform scaffold
davoodmehraban89 committed
Oct 5, 2026 at 07:33 UTC
fdca64f346a1bd39b79027afdfe662e070cf3edc
1 file changed
+12
-1
.github/workflows/ci.yml
+12
-1
@@ -6,7 +6,7 @@ on:
6
pull_request:
7
8
permissions:
9
- contents: read
9
+ contents: write
10
11
jobs:
12
flutter:
@@ -22,6 +22,17 @@ jobs:
22
cache: true
23
- name: Generate platform scaffold
24
run: flutter create --platforms=android,web --project-name=lifemate .
25
+ - name: Persist platform scaffold on branch
26
+ if: github.event_name == 'push' && github.ref == 'refs/heads/phase-2/product-foundation-identity'
27
+ working-directory: .
28
+ run: |
29
+ git config user.name github-actions[bot]
30
+ git config user.email 41898282+github-actions[bot]@users.noreply.github.com
31
+ git add apps/lifemate/android apps/lifemate/web apps/lifemate/.metadata
32
+ if ! git diff --cached --quiet; then
33
+ git commit -m "chore: persist generated Flutter Android and Web scaffold"
34
+ git push
35
+ fi
36
- run: flutter pub get
37
- run: dart format --output=none --set-exit-if-changed lib test
38
- run: flutter analyze