Skip to content

Commit f73b88f

Browse files
committed
fix: skip waiting when no workflows are running
1 parent 668cbe8 commit f73b88f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

gh/db_migration_wait.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,10 @@ RUNNING_DB_UPGRADE_WORKFLOW_ID=$(gh run list \
3131
# sleep 5
3232
# fi
3333
# done
34-
gh run watch $RUNNING_DB_UPGRADE_WORKFLOW_ID --repo code-kern-ai/refinery-gateway
34+
if [ -z $RUNNING_DB_UPGRADE_WORKFLOW_ID ]; then
35+
echo "::notice::No running db upgrade workflow found"
36+
exit 0
37+
fi
38+
39+
gh run watch $RUNNING_DB_UPGRADE_WORKFLOW_ID --repo code-kern-ai/refinery-gateway
40+
echo "::notice::Running db upgrade workflow completed"

0 commit comments

Comments
 (0)