Skip to content

Commit 758d02c

Browse files
authored
Fix row count extraction in CI workflow
Change row count verification command to extract the correct count from the output.
1 parent 1c4095b commit 758d02c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
1919
# Verify that data was actually loaded by checking row count
2020
echo "Verifying demo data was loaded..."
21-
row_count=$(docker compose exec -T ducklake-init duckdb -c "SELECT COUNT(*) FROM the_ducklake.gene;" | tail -n 1 | tr -d ' ')
21+
row_count=$(docker compose exec -T ducklake-init duckdb -c "SELECT COUNT(*) FROM the_ducklake.gene;" | tail -n 2 | head -n 1 | \grep -Eo '\d+')
2222
echo "Found $row_count rows in gene table"
2323
2424
# Ensure we have a reasonable number of rows (gene data should have thousands)
@@ -52,4 +52,4 @@ jobs:
5252
5353
- name: Clean up
5454
if: always()
55-
run: make down
55+
run: make down

0 commit comments

Comments
 (0)