LifeMate — Personal, Family & Learning Companion
chore: fix final unused analyzer finding
davoodmehraban89 committed
Oct 5, 2026 at 20:05 UTC
be0335fd6da7c4851c2b2e061a7dd26e85be2943
1 file changed
+19
.github/workflows/fix-unused.yml
new
+19
@@ -0,0 +1,19 @@
1
+name: Fix Final Unused
2
+on:
3
+ push:
4
+ branches: ['final-feature-1/iran-family-school']
5
+permissions:
6
+ contents: write
7
+jobs:
8
+ fix:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+ with: {ref: final-feature-1/iran-family-school}
13
+ - run: |
14
+ python - <<'PY'
15
+ from pathlib import Path
16
+ p=Path('apps/lifemate/lib/iran_hub.dart');s=p.read_text().replace("final profile=s.data![0],prefs=s.data![3];","final prefs=s.data![3];");p.write_text(s)
17
+ PY
18
+ if git diff --quiet; then exit 0; fi
19
+ git config user.name 'github-actions[bot]'; git config user.email '41898282+github-actions[bot]@users.noreply.github.com'; git add apps/lifemate/lib/iran_hub.dart; git commit -m 'fix: remove unused profile local'; git push origin HEAD:final-feature-1/iran-family-school