chore: update pre-publish (#51708)

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)) {