File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 2727# --terraformAction "apply" \
2828# --internalRef "main"
2929
30- set -e
30+ set -ex
3131
3232while [[ $# -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
You can’t perform that action at this time.
0 commit comments