Skip to content

Commit

Permalink
fix: prevent workflow destructuring errors for failing tasks (#9649)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
AlessioGr authored Dec 2, 2024
1 parent f151723 commit 4cd31ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export const getRunTaskFunction = <TIsInline extends boolean>(
return
}

let output: object
let output: object = {}

try {
const runnerOutput = await runner({
Expand Down

0 comments on commit 4cd31ce

Please sign in to comment.