Skip to content

Commit d7cb3ca

Browse files
committed
CCM-10893 Wait for github conclusion
1 parent 1dd0e3b commit d7cb3ca

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/dispatch_internal_repo_workflow.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
)
8686
}')
8787
88-
# Trigger The workflow
88+
# Trigger the workflow
8989
curl -L \
9090
--fail \
9191
--silent \
@@ -157,6 +157,12 @@ jobs:
157157
conclusion=$(echo "$response" | jq -r '.conclusion')
158158
159159
if [ "$status" == "completed" ]; then
160+
if [ -z "$conclusion" ] || [ "$conclusion" == "null" ]; then
161+
echo "Workflow marked completed but conclusion not yet available, retrying..."
162+
sleep 5
163+
continue
164+
fi
165+
160166
if [ "$conclusion" == "success" ]; then
161167
echo "Workflow completed successfully."
162168
exit 0

0 commit comments

Comments
 (0)