fix: prevent workflow destructuring errors for failing tasks (#9649)
When destructuring the output of task in a job workflow handler, there is a chance of a destructuring error being thrown if the task fails
This commit is contained in:
@@ -231,7 +231,7 @@ export const getRunTaskFunction = <TIsInline extends boolean>(
|
||||
return
|
||||
}
|
||||
|
||||
let output: object
|
||||
let output: object = {}
|
||||
|
||||
try {
|
||||
const runnerOutput = await runner({
|
||||
|
||||
Reference in New Issue
Block a user