From 57f8afdc3d57d395f5ccf79cc4bb5208ded0cdee Mon Sep 17 00:00:00 2001 From: MDLeom <2809763-curben@users.noreply.gitlab.com> Date: Mon, 2 Oct 2023 00:08:34 +0000 Subject: [PATCH] fix: less strict check on pipeline status it can be "success, "running" or "unknown" --- src/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build.js b/src/build.js index 883a0a18..30291f0d 100644 --- a/src/build.js +++ b/src/build.js @@ -22,7 +22,7 @@ const ghMirror = 'https://nightly.link/curbengh/urlhaus-filter/workflows/pages/m const pipelineStatus = async (url) => { try { const svg = await got(url).text() - if (!svg.includes('passed')) throw new Error('last gitlab pipeline failed') + if (svg.includes('failed')) throw new Error('last gitlab pipeline failed') } catch ({ message }) { throw new Error(message) }