Skip to content

Commit 9a021ea

Browse files
committed
Fix format json
1 parent 04e6c6b commit 9a021ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/forward_deployment.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ jobs:
5353
run: tb --host $TINYBIRD_FWD_HOST --token $TINYBIRD_FWD_TOKEN --cloud deployment create --auto --wait
5454
- name: Populate datasource if empty
5555
run: |
56-
COUNT=$(tb --host $TINYBIRD_FWD_HOST --token $TINYBIRD_FWD_TOKEN --cloud sql "SELECT count() AS c FROM users" --format json | grep '"c":' | awk '{print $2}')
56+
COUNT=$(tb --host $TINYBIRD_FWD_HOST --token $TINYBIRD_FWD_TOKEN --cloud --format json sql "SELECT count() AS c FROM users" | grep '"c":' | awk '{print $2}')
5757
if [ "$COUNT" -eq 0 ]; then
5858
tb --host $TINYBIRD_FWD_HOST --token $TINYBIRD_FWD_TOKEN --cloud copy run populate --wait
5959
else
6060
echo "Datasource is not empty, skipping population"
6161
fi
6262
- name: Check users datasource
6363
run: |
64-
COUNT=$(tb --host $TINYBIRD_FWD_HOST --token $TINYBIRD_FWD_TOKEN --cloud sql "SELECT count() AS c FROM users" --format json | grep '"c":' | awk '{print $2}')
64+
COUNT=$(tb --host $TINYBIRD_FWD_HOST --token $TINYBIRD_FWD_TOKEN --cloud --format json sql "SELECT count() AS c FROM users" | grep '"c":' | awk '{print $2}')
6565
if [ "$COUNT" -eq 1000000000 ]; then
6666
echo "Datasource data is correct"
6767
else
@@ -70,7 +70,7 @@ jobs:
7070
fi
7171
- name: Check user_stats datasource
7272
run: |
73-
COUNT=$(tb --host $TINYBIRD_FWD_HOST --token $TINYBIRD_FWD_TOKEN --cloud sql "SELECT count() AS c FROM user_stats" --format json | grep '"c":' | awk '{print $2}')
73+
COUNT=$(tb --host $TINYBIRD_FWD_HOST --token $TINYBIRD_FWD_TOKEN --cloud --format json sql "SELECT count() AS c FROM user_stats" | grep '"c":' | awk '{print $2}')
7474
if [ "$COUNT" -gt 0 ]; then
7575
echo "Datasource data is correct"
7676
else

0 commit comments

Comments
 (0)