Skip to content

Commit efc6bc3

Browse files
committed
fix: bash if semantic update in db-migration-wait
1 parent 3407b52 commit efc6bc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gh/db_migration_wait.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ done
1818
RUNNING_DB_UPGRADE_WORKFLOW_ID=null
1919

2020

21-
while [ -n $RUNNING_DB_UPGRADE_WORKFLOW_ID ]; do
21+
while [ -n "$RUNNING_DB_UPGRADE_WORKFLOW_ID" ]; do
2222
RUNNING_DB_UPGRADE_WORKFLOW_ID=$(gh run list \
2323
--json conclusion,databaseId,headBranch,status,workflowName \
2424
--jq ".[] | select(.workflowName==\"$WAIT_WORKFLOW_NAME\" and .status!=\"completed\" and .headBranch!=\"$ENVIRONMENT_NAME\" and .databaseId!=$CURRENT_WORKFLOW_DATABASE_ID) | .databaseId" \
2525
--repo code-kern-ai/refinery-gateway)
2626

2727
echo "Waiting for running db upgrade workflow to complete ..."
28-
if [ -n $RUNNING_DB_UPGRADE_WORKFLOW_ID ]; then
28+
if [ -n "$RUNNING_DB_UPGRADE_WORKFLOW_ID" ]; then
2929
gh run watch $RUNNING_DB_UPGRADE_WORKFLOW_ID --repo code-kern-ai/refinery-gateway 1> /dev/null
3030
fi
3131
done

0 commit comments

Comments
 (0)