chore: update pre-publish (#51708)
Some checks failed
Publish Any Commit / build (push) Waiting to run
🔀 Sync mirror to Gitee / mirror (push) Waiting to run
✅ test / lint (push) Waiting to run
✅ test / test-react-legacy (16, 1/2) (push) Waiting to run
✅ test / test-react-legacy (16, 2/2) (push) Waiting to run
✅ test / test-react-legacy (17, 1/2) (push) Waiting to run
✅ test / test-react-legacy (17, 2/2) (push) Waiting to run
✅ test / test-node (push) Waiting to run
✅ test / test-react-latest (dom, 1/2) (push) Waiting to run
✅ test / test-react-latest (dom, 2/2) (push) Waiting to run
✅ test / test-react-latest-dist (dist, 1/2) (push) Blocked by required conditions
✅ test / test-react-latest-dist (dist, 2/2) (push) Blocked by required conditions
✅ test / test-react-latest-dist (dist-min, 1/2) (push) Blocked by required conditions
✅ test / test-react-latest-dist (dist-min, 2/2) (push) Blocked by required conditions
✅ test / test-coverage (push) Blocked by required conditions
✅ test / build (push) Waiting to run
✅ test / test lib/es module (es, 1/2) (push) Waiting to run
✅ test / test lib/es module (es, 2/2) (push) Waiting to run
✅ test / test lib/es module (lib, 1/2) (push) Waiting to run
✅ test / test lib/es module (lib, 2/2) (push) Waiting to run
👁️ Visual Regression Persist Start / test image (push) Waiting to run
Issue Close Require / issue-close-require (push) Has been cancelled
Issue Schedule / send-message (push) Has been cancelled

This commit is contained in:
MadCcc 2024-11-20 17:09:25 +08:00 committed by GitHub
parent a4c884cb3d
commit 2c189d03ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -142,7 +142,7 @@ const runPrePublish = async () => {
showMessage(`开始检查远程分支 ${currentBranch} 的 CI 状态`, true); showMessage(`开始检查远程分支 ${currentBranch} 的 CI 状态`, true);
const failureUrlList: string[] = []; const failureUrlList: string[] = [];
const { let {
data: { check_runs }, data: { check_runs },
} = await octokit.checks.listForRef({ } = await octokit.checks.listForRef({
owner, owner,
@ -150,6 +150,9 @@ const runPrePublish = async () => {
ref: sha, ref: sha,
}); });
showMessage(`远程分支 CI 状态(${check_runs.length})`, 'succeed'); showMessage(`远程分支 CI 状态(${check_runs.length})`, 'succeed');
check_runs = check_runs.filter(
(run) => !run.name.padEnd(36).includes('Check Virtual Regression Approval'),
);
check_runs.forEach((run) => { check_runs.forEach((run) => {
showMessage(` ${run.name.padEnd(36)} ${emojify(run.status)} ${emojify(run.conclusion || '')}`); showMessage(` ${run.name.padEnd(36)} ${emojify(run.status)} ${emojify(run.conclusion || '')}`);
if (blockStatus.some((status) => run.conclusion === status)) { if (blockStatus.some((status) => run.conclusion === status)) {