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 328409f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions dist/index.js

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

6 changes: 4 additions & 2 deletions src/slab.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,17 @@ async function waitForInstance(taskId, taskName) {
if (response.ok) {
const body = await response.json()
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.')
await removeTask(taskId)
break
}
} else {
core.error(
Expand Down

0 comments on commit 328409f

Please sign in to comment.