Skip to content

Commit

Permalink
wip: debug commit
Browse files Browse the repository at this point in the history
  • Loading branch information
soonum committed Jul 9, 2024
1 parent 2c5fd52 commit f1c5669
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/slab.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,15 @@ async function waitForInstance(taskId, taskName) {

if (response.ok) {
const body = await response.json()
core.info(`DEBUG Body bah: ${JSON.stringify(body).toString()}`)
const task_status = body[taskName].status.toLowerCase()
if (task_status === 'done') {
await removeTask(taskId)
return body
} else if (task_status === 'failed') {
await removeTask(taskId)
core.error(
`Instance task failed (details: ${body[taskName].status.details})`
`Instance task failed (details: ${body[taskName].details})`
)
core.setFailed('Failure occurred while waiting for instance.')
}
Expand Down

0 comments on commit f1c5669

Please sign in to comment.