


















@@ -568,7 +568,7 @@ jobs:
568568569569 summary:
570570name: Verify full validation
571-needs: [normal_ci, plugin_prerelease, release_checks, npm_telegram]
571+needs: [resolve_target, normal_ci, plugin_prerelease, release_checks, npm_telegram]
572572if: always()
573573runs-on: ubuntu-24.04
574574timeout-minutes: 5
@@ -640,6 +640,7 @@ jobs:
640640PLUGIN_PRERELEASE_RESULT: ${{ needs.plugin_prerelease.result }}
641641RELEASE_CHECKS_RESULT: ${{ needs.release_checks.result }}
642642NPM_TELEGRAM_RESULT: ${{ needs.npm_telegram.result }}
643+TARGET_SHA: ${{ needs.resolve_target.outputs.sha }}
643644run: |
644645 set -euo pipefail
645646@@ -657,13 +658,19 @@ jobs:
657658 return 1
658659 fi
659660660- local run_json status conclusion url attempt
661- run_json="$(gh run view "$run_id" --json status,conclusion,url,attempt,jobs)"
661+ local run_json status conclusion url attempt head_sha
662+ run_json="$(gh run view "$run_id" --json status,conclusion,url,attempt,headSha,jobs)"
662663 status="$(jq -r '.status' <<< "$run_json")"
663664 conclusion="$(jq -r '.conclusion' <<< "$run_json")"
664665 url="$(jq -r '.url' <<< "$run_json")"
665666 attempt="$(jq -r '.attempt' <<< "$run_json")"
666- echo "${label}: ${status}/${conclusion} attempt ${attempt}: ${url}"
667+ head_sha="$(jq -r '.headSha // ""' <<< "$run_json")"
668+ echo "${label}: ${status}/${conclusion} attempt ${attempt} head ${head_sha}: ${url}"
669+670+ if [[ -n "${TARGET_SHA// }" && "$head_sha" != "$TARGET_SHA" ]]; then
671+ echo "::error::${label} child run used ${head_sha}, expected ${TARGET_SHA}. Dispatch Full Release Validation from a ref pinned to the target SHA, not a moving branch."
672+ return 1
673+ fi
667674668675 if [[ "$status" != "completed" || "$conclusion" != "success" ]]; then
669676 echo "::error::${label} child run ended with ${status}/${conclusion}: ${url}"
@@ -677,8 +684,8 @@ jobs:
677684 echo
678685 echo "### Child workflow overview"
679686 echo
680- echo "| Child | Result | Minutes | Run |"
681- echo "| --- | --- | ---: | --- |"
687+ echo "| Child | Result | Minutes | Head SHA | Run |"
688+ echo "| --- | --- | ---: | --- | --- |"
682689 } >> "$GITHUB_STEP_SUMMARY"
683690684691 append_child_row() {
@@ -692,7 +699,7 @@ jobs:
692699 fi
693700694701 local run_json row
695- run_json="$(gh run view "$run_id" --json status,conclusion,url,createdAt,updatedAt)"
702+ run_json="$(gh run view "$run_id" --json status,conclusion,url,createdAt,updatedAt,headSha)"
696703 row="$(
697704 jq -r --arg label "$label" '
698705 def ts: fromdateiso8601;
@@ -703,7 +710,8 @@ jobs:
703710 then (((($updated | ts) - ($created | ts)) / 60) * 10 | round / 10 | tostring)
704711 else ""
705712 end) as $minutes |
706- "| `" + $label + "` | `" + ($run.status // "") + "/" + ($run.conclusion // "") + "` | " + $minutes + " | [run](" + ($run.url // "") + ") |"
713+ ($run.headSha // "") as $head |
714+ "| `" + $label + "` | `" + ($run.status // "") + "/" + ($run.conclusion // "") + "` | " + $minutes + " | `" + $head + "` | [run](" + ($run.url // "") + ") |"
707715 ' <<< "$run_json"
708716 )"
709717 echo "$row" >> "$GITHUB_STEP_SUMMARY"
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。