From 0b56d1ec09ddd56e61a18cf79990797b6cbf77f5 Mon Sep 17 00:00:00 2001 From: Mostafa Moradian Date: Mon, 7 Oct 2024 21:24:24 +0200 Subject: [PATCH] Check for nil or empty result --- act/registry.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/act/registry.go b/act/registry.go index 68fe97ab..e3a0b9c6 100644 --- a/act/registry.go +++ b/act/registry.go @@ -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