





























@@ -207,6 +207,19 @@ jobs:
207207 echo "Dispatched ${workflow}: https://github.com/${GITHUB_REPOSITORY}/actions/runs/${run_id}"
208208 echo "run_id=${run_id}" >> "$GITHUB_OUTPUT"
209209210+ cleanup_child_run() {
211+ local exit_code=$?
212+ trap - EXIT INT TERM
213+ local child_status
214+ child_status="$(gh run view "$run_id" --json status --jq '.status' 2>/dev/null || true)"
215+ if [[ "$child_status" != "completed" ]]; then
216+ echo "Cancelling child ${workflow} run ${run_id} after parent exit (${exit_code})."
217+ gh run cancel "$run_id" || gh api -X POST "repos/${GITHUB_REPOSITORY}/actions/runs/${run_id}/force-cancel" || true
218+ fi
219+ return "$exit_code"
220+ }
221+ trap cleanup_child_run EXIT INT TERM
222+210223 while true; do
211224 status="$(gh run view "$run_id" --json status --jq '.status')"
212225 if [[ "$status" == "completed" ]]; then
@@ -295,6 +308,19 @@ jobs:
295308 echo "Dispatched ${workflow}: https://github.com/${GITHUB_REPOSITORY}/actions/runs/${run_id}"
296309 echo "run_id=${run_id}" >> "$GITHUB_OUTPUT"
297310311+ cleanup_child_run() {
312+ local exit_code=$?
313+ trap - EXIT INT TERM
314+ local child_status
315+ child_status="$(gh run view "$run_id" --json status --jq '.status' 2>/dev/null || true)"
316+ if [[ "$child_status" != "completed" ]]; then
317+ echo "Cancelling child ${workflow} run ${run_id} after parent exit (${exit_code})."
318+ gh run cancel "$run_id" || gh api -X POST "repos/${GITHUB_REPOSITORY}/actions/runs/${run_id}/force-cancel" || true
319+ fi
320+ return "$exit_code"
321+ }
322+ trap cleanup_child_run EXIT INT TERM
323+298324 while true; do
299325 status="$(gh run view "$run_id" --json status --jq '.status')"
300326 if [[ "$status" == "completed" ]]; then
@@ -330,7 +356,7 @@ jobs:
330356 fi
331357332358 dispatch_and_wait openclaw-release-checks.yml \
333- -f ref="$TARGET_SHA" \
359+ -f ref="$TARGET_REF" \
334360 -f expected_sha="$TARGET_SHA" \
335361 -f provider="$PROVIDER" \
336362 -f mode="$MODE" \
@@ -389,6 +415,19 @@ jobs:
389415 echo "Dispatched npm-telegram-beta-e2e.yml: https://github.com/${GITHUB_REPOSITORY}/actions/runs/${run_id}"
390416 echo "run_id=${run_id}" >> "$GITHUB_OUTPUT"
391417418+ cleanup_child_run() {
419+ local exit_code=$?
420+ trap - EXIT INT TERM
421+ local child_status
422+ child_status="$(gh run view "$run_id" --json status --jq '.status' 2>/dev/null || true)"
423+ if [[ "$child_status" != "completed" ]]; then
424+ echo "Cancelling npm-telegram-beta-e2e.yml child run ${run_id} after parent exit (${exit_code})."
425+ gh run cancel "$run_id" || gh api -X POST "repos/${GITHUB_REPOSITORY}/actions/runs/${run_id}/force-cancel" || true
426+ fi
427+ return "$exit_code"
428+ }
429+ trap cleanup_child_run EXIT INT TERM
430+392431 while true; do
393432 status="$(gh run view "$run_id" --json status --jq '.status')"
394433 if [[ "$status" == "completed" ]]; then
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。