File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -105,8 +105,10 @@ jobs:
105105 declare -A JOB_CHECK_RUN_IDS
106106 # job name → '1' once the check run has been finalized
107107 declare -A JOB_DONE
108+ # job name → fork job HTML URL
109+ declare -A JOB_URLS
108110
109- MAX_POLL=50
111+ MAX_POLL=90
110112 POLL=0
111113 OVERALL_CONCLUSION=""
112114
@@ -132,6 +134,7 @@ jobs:
132134 JOB_URL=$(echo "$JOBS_JSON" | jq -r ".jobs[$i].html_url")
133135
134136 # Create a Check Run for this job the first time we see it.
137+ JOB_URLS[$JOB_NAME]="$JOB_URL"
135138 if [[ -z "${JOB_CHECK_RUN_IDS[$JOB_NAME]}" ]]; then
136139 echo " Creating check run: ${JOB_NAME}"
137140 CR_ID=$(gh api \
@@ -249,7 +252,7 @@ jobs:
249252 -f status="completed" \
250253 -f conclusion="timed_out" \
251254 -f output[title]="Timed out: ${JOB_NAME}" \
252- -f output[summary]="The polling window expired before job '${JOB_NAME}' completed."
255+ -f output[summary]="The polling window expired before job '${JOB_NAME}' completed. [View job](${JOB_URLS[$JOB_NAME]}) "
253256 fi
254257 done
255258 fi
You can’t perform that action at this time.
0 commit comments