fix: less strict check on pipeline status

it can be "success, "running" or "unknown"
This commit is contained in:
MDLeom 2023-10-02 00:08:34 +00:00
parent 3fb789eb41
commit 57f8afdc3d
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}