Skip to content

Commit

Permalink
Check for nil or empty result
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa committed Oct 7, 2024
1 parent 8effd0f commit 0b56d1e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions act/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,10 @@ func runActionWithTimeout(

// RunAll run all the actions in the outputs and returns the end result.
func (r *Registry) RunAll(result map[string]any) map[string]any {
if result == nil || len(result) == 0 {
return result
}

if _, exists := result[sdkAct.Outputs]; !exists {
r.Logger.Debug().Msg("Outputs key is not present, returning the result as-is")
return result
Expand Down

0 comments on commit 0b56d1e

Please sign in to comment.