diff --git a/dist/index.js b/dist/index.js index 529d1dc..c35eaf4 100644 --- a/dist/index.js +++ b/dist/index.js @@ -49777,6 +49777,12 @@ async function waitForInstance(taskId, taskName) { if (body[taskName].status.toLowerCase() === 'done') { await removeTask(taskId) return body + } else if (body[taskName].status.toLowerCase() === 'failed') { + await removeTask(taskId) + core.error( + `Instance task failed (details: ${body[taskName].status.details})` + ) + core.setFailed('Failure occurred while waiting for instance.') } } else { core.error( diff --git a/src/slab.js b/src/slab.js index f2fcf88..698e1a3 100644 --- a/src/slab.js +++ b/src/slab.js @@ -69,6 +69,12 @@ async function waitForInstance(taskId, taskName) { if (body[taskName].status.toLowerCase() === 'done') { await removeTask(taskId) return body + } else if (body[taskName].status.toLowerCase() === 'failed') { + await removeTask(taskId) + core.error( + `Instance task failed (details: ${body[taskName].status.details})` + ) + core.setFailed('Failure occurred while waiting for instance.') } } else { core.error(