fix: only check for failed pipeline

- successful pipeline may have unknown status
This commit is contained in:
MDLeom 2023-08-06 11:20:20 +00:00
parent b03e462e42
commit 7e745ba6d1
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ const oisdFilters = {
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)
}