fix: reusable workflow panic (#1728)

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
ChristopherHX
2023-04-13 15:47:59 +02:00
committed by GitHub
parent c0130ed030
commit d70b225e85
4 changed files with 27 additions and 1 deletions

View File

@@ -123,7 +123,8 @@ type WorkflowCallResult struct {
func (w *Workflow) WorkflowCallConfig() *WorkflowCall {
if w.RawOn.Kind != yaml.MappingNode {
return nil
// The callers expect for "on: workflow_call" and "on: [ workflow_call ]" a non nil return value
return &WorkflowCall{}
}
var val map[string]yaml.Node