fix: less strict check on pipeline status
it can be "success, "running" or "unknown"
This commit is contained in:
parent
3fb789eb41
commit
57f8afdc3d
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue