From 63455960ec714eea7631a586bcd59bed449739fc Mon Sep 17 00:00:00 2001 From: "S. M. Mahmudul Haque" Date: Thu, 24 Oct 2024 15:38:10 +0200 Subject: [PATCH] Remove redundant check See: https://github.com/nektos/act/issues/2464#issuecomment-2430903650 --- pkg/runner/expression.go | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/pkg/runner/expression.go b/pkg/runner/expression.go index 90643d09119..3f71f8fce9f 100644 --- a/pkg/runner/expression.go +++ b/pkg/runner/expression.go @@ -480,7 +480,6 @@ func rewriteSubExpression(ctx context.Context, in string, forceFormat bool) (str return out, nil } -//nolint:gocyclo func getEvaluatorInputs(ctx context.Context, rc *RunContext, step step, ghc *model.GithubContext) map[string]interface{} { inputs := map[string]interface{}{} @@ -516,22 +515,6 @@ func getEvaluatorInputs(ctx context.Context, rc *RunContext, step step, ghc *mod } } - if ghc.EventName == "workflow_call" { - config := rc.Run.Workflow.WorkflowCallConfig() - if config != nil && config.Inputs != nil { - for k, v := range config.Inputs { - value := nestedMapLookup(ghc.Event, "inputs", k) - if value == nil { - v.Default.Decode(&value) - } - if v.Type == "boolean" { - inputs[k] = value == "true" - } else { - inputs[k] = value - } - } - } - } return inputs }