Skip to content

Commit dd30d1b

Browse files
CCM-11942 Updating script with debug info
1 parent 6db1ccb commit dd30d1b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/scripts/dispatch_internal_repo_workflow.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,11 @@ workflow_run_url=$(curl -s -L \
176176
end
177177
| .url')
178178

179+
179180
if [[ -n "$workflow_run_url" && "$workflow_run_url" != null ]]; then
180-
ui_url=${workflow_run_url/api./}
181-
ui_url=${ui_url/\/repos/}
182-
echo "[INFO] Found workflow run url: $ui_url"
181+
# Get the latest GHA run of this combination of parameters
182+
workflow_run_url=$(echo "$workflow_run_url" | head -n 1)
183+
echo "[INFO] Found workflow run url: $workflow_run_url"
183184
break
184185
fi
185186

0 commit comments

Comments
 (0)