Skip to content

Commit 84e4f0a

Browse files
committed
style: add verbose logs to db-migration-wait
1 parent efc6bc3 commit 84e4f0a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

gh/db_migration_wait.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,12 @@ while [ -n "$RUNNING_DB_UPGRADE_WORKFLOW_ID" ]; do
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

27-
echo "Waiting for running db upgrade workflow to complete ..."
2827
if [ -n "$RUNNING_DB_UPGRADE_WORKFLOW_ID" ]; then
28+
RUNNING_DB_UPGRADE_WORKFLOW_URL=$(gh run list \
29+
--json databaseId,url \
30+
--jq ".[] | select(.databaseId==$RUNNING_DB_UPGRADE_WORKFLOW_ID) | .url" \
31+
--repo code-kern-ai/refinery-gateway)
32+
echo "Waiting for running db upgrade workflow to complete: $RUNNING_DB_UPGRADE_WORKFLOW_URL"
2933
gh run watch $RUNNING_DB_UPGRADE_WORKFLOW_ID --repo code-kern-ai/refinery-gateway 1> /dev/null
3034
fi
3135
done

0 commit comments

Comments
 (0)