Skip to content

Commit 3407b52

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

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
@@ -15,10 +15,10 @@ do
1515
done
1616

1717

18-
RUNNING_DB_UPGRADE_WORKFLOW_ID=""
18+
RUNNING_DB_UPGRADE_WORKFLOW_ID=null
1919

2020

21-
while [ -z $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" \

0 commit comments

Comments
 (0)