Skip to content

Commit

Permalink
Add condition to prevent replacing inputs in reusable workflows with …
Browse files Browse the repository at this point in the history
…workflow_dispatch inputs

Closes: nektos#2464
  • Loading branch information
mahmud2011 committed Oct 24, 2024
1 parent 6345596 commit 598fb40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/runner/expression.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 598fb40

Please sign in to comment.