Skip to content

Commit e5aba6d

Browse files
committed
fix: pull lfs files explicitely
1 parent 61ec05c commit e5aba6d

4 files changed

Lines changed: 26 additions & 1 deletion

File tree

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Ensure LFS applies whether the DB lives under repo-root db/ or frontend/db/
2+
db/**/*.db filter=lfs diff=lfs merge=lfs -text
3+
frontend/db/**/*.db filter=lfs diff=lfs merge=lfs -text
4+

.github/workflows/buid_deploy.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,26 @@ jobs:
1919
with:
2020
# fetch-depth: 0 is recommended for a more reliable diff across multiple commits in a push
2121
fetch-depth: 0
22+
lfs: true
23+
24+
- name: Verify LFS and database file
25+
run: |
26+
echo "🔎 Verifying Git LFS and SQLite DB presence..."
27+
git lfs version || true
28+
echo "LFS-tracked files:"
29+
git lfs ls-files || true
30+
echo "Listing DB directories:"
31+
ls -l ./db || true
32+
ls -l ./frontend/db || true
33+
echo "File type of DB files (if present):"
34+
for f in ./db/*.db ./frontend/db/*.db; do
35+
if [ -f "$f" ]; then file "$f" || true; fi
36+
done
37+
38+
- name: Pull LFS objects explicitly (workaround)
39+
run: |
40+
echo "⬇️ Pulling LFS objects explicitly..."
41+
git lfs pull --include="db/**,frontend/db/**" || git lfs pull || true
2242
2343
- name: Detect changed sections
2444
id: detect-changes

frontend/db/svg_icons/svg-icons-utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import type {
88
RawIconRow,
99
} from './svg-icons-schema';
1010

11+
// DB queries
1112
let dbInstance: Database.Database | null = null;
1213

1314
function getDbPath(): string {

frontend/src/pages/svg_icons/_SvgIcons.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const {
6060
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
6161
{
6262
categories.map((category: any) => {
63-
// Get base64 icons from database for this category.
63+
// Get base64 icons from database for this category
6464
// Use category.id (source_folder) which is the actual cluster key in the database
6565
const dbIcons = getIconsByCluster(category.id || category.name) || [];
6666
const previewIcons = dbIcons.slice(0, 6);

0 commit comments

Comments
 (0)