fix(ci): auto-merge用PR head SHA查CI+ci-check标签
Auto Approve CI PRs / Auto Approve on CI Green (pull_request) Successful in 20m49s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1463h48m37s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1463h48m38s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1463h48m38s
Auto Merge PRs (main) / Auto Merge on CI Green + Approved (main) (pull_request) Failing after 1463h50m31s
CI/CD Pipeline / Build Production Runtime Images (pull_request) Failing after 1463h48m39s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Failing after 1463h48m39s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been skipped
CI/CD Pipeline / Frontend Lint (pull_request) Has been skipped

This commit is contained in:
2026-07-17 15:38:57 +08:00
parent 9f311721d1
commit a677adec7b
+2 -1
View File
@@ -20,6 +20,7 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
MERGE_TOKEN: ${{ secrets.REVIEW_GITEA_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}
PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
BASE_REF: ${{ github.event.pull_request.base.ref }}
run: |
set -eu
@@ -51,7 +52,7 @@ jobs:
# 检查CI状态
for ctx in "${CONTEXTS[@]}"; do
STATE=$(python3 scripts/check_ci_status.py "$GITHUB_TOKEN" "$GITHUB_REPOSITORY" "$GITHUB_SHA" "$ctx")
STATE=$(python3 scripts/check_ci_status.py "$GITHUB_TOKEN" "$GITHUB_REPOSITORY" "$PR_HEAD_SHA" "$ctx")
echo " CI: ${ctx##*/}: $STATE"
if [ "$STATE" != "success" ]; then
ALL_SUCCESS=false