From 598fb406d06cbb344a113b05669f756f1db34100 Mon Sep 17 00:00:00 2001 From: "S. M. Mahmudul Haque" Date: Thu, 24 Oct 2024 15:46:33 +0200 Subject: [PATCH] Add condition to prevent replacing inputs in reusable workflows with workflow_dispatch inputs Closes: https://github.com/nektos/act/issues/2464 --- pkg/runner/expression.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/runner/expression.go b/pkg/runner/expression.go index 3f71f8fce9f..e6e3ae18f06 100644 --- a/pkg/runner/expression.go +++ b/pkg/runner/expression.go @@ -498,7 +498,7 @@ func getEvaluatorInputs(ctx context.Context, rc *RunContext, step step, ghc *mod } } - if ghc.EventName == "workflow_dispatch" { + if rc.caller == nil && ghc.EventName == "workflow_dispatch" { config := rc.Run.Workflow.WorkflowDispatchConfig() if config != nil && config.Inputs != nil { for k, v := range config.Inputs {