Skip to content

Commit 450d02d

Browse files
CCM-11942 Updating script with debug info
1 parent 8cd2706 commit 450d02d

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/scripts/dispatch_internal_repo_workflow.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# --terraformAction "apply" \
2828
# --internalRef "main"
2929

30-
set -e
30+
set -ex
3131

3232
while [[ $# -gt 0 ]]; do
3333
case $1 in
@@ -186,13 +186,14 @@ for _ in {1..18}; do
186186

187187
if [[ -n "$workflow_run_url" && "$workflow_run_url" != null ]]; then
188188
# Workflow_run_url is a list of all workflows which were run for this combination of inputs, but are the API uri
189-
# take the first and strip it back to being an accessible url
189+
workflow_run_url=$(echo "$workflow_run_url" | head -n 1)
190+
191+
# Take the first and strip it back to being an accessible url
190192
# Example https://api.github.com/repos/MyOrg/my-repo/actions/runs/12346789 becomes
191193
# becomes https://github.com/MyOrg/my-repo/actions/runs/12346789
192-
workflow_run_url=$(echo "$workflow_run_url" | head -n 1)
193-
workflow_run_url=${workflow_run_url/api./} # strips the api. prefix
194-
workflow_run_url=${workflow_run_url/\/repos/} # strips the repos/ uri
195-
echo "[INFO] Found workflow run url: $workflow_run_url"
194+
workflow_run_ui_url=${workflow_run_url/api./} # Strips the api. prefix
195+
workflow_run_ui_url=${workflow_run_url/\/repos/} # Strips the repos/ uri
196+
echo "[INFO] Found workflow run url: $workflow_run_ui_url"
196197
break
197198
fi
198199

0 commit comments

Comments
 (0)