fix: only check for failed pipeline
- successful pipeline may have unknown status
This commit is contained in:
parent
b03e462e42
commit
7e745ba6d1
|
@ -45,7 +45,7 @@ const oisdFilters = {
|
||||||
const pipelineStatus = async (url) => {
|
const pipelineStatus = async (url) => {
|
||||||
try {
|
try {
|
||||||
const svg = await got(url).text()
|
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 }) {
|
} catch ({ message }) {
|
||||||
throw new Error(message)
|
throw new Error(message)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue