From 2c189d03ca2b2a5d6ef84419df48b06c1e1e6172 Mon Sep 17 00:00:00 2001 From: MadCcc Date: Wed, 20 Nov 2024 17:09:25 +0800 Subject: [PATCH] chore: update pre-publish (#51708) --- scripts/pre-publish.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/pre-publish.ts b/scripts/pre-publish.ts index 6d045c2dbe..a34b21b585 100644 --- a/scripts/pre-publish.ts +++ b/scripts/pre-publish.ts @@ -142,7 +142,7 @@ const runPrePublish = async () => { showMessage(`开始检查远程分支 ${currentBranch} 的 CI 状态`, true); const failureUrlList: string[] = []; - const { + let { data: { check_runs }, } = await octokit.checks.listForRef({ owner, @@ -150,6 +150,9 @@ const runPrePublish = async () => { ref: sha, }); 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) => { showMessage(` ${run.name.padEnd(36)} ${emojify(run.status)} ${emojify(run.conclusion || '')}`); if (blockStatus.some((status) => run.conclusion === status)) {