fix: set inputs to an empty map
This commit is contained in:
parent
627ef246c6
commit
02ccd9a757
1 changed files with 4 additions and 0 deletions
|
@ -196,6 +196,10 @@ func (r *Runner) run(ctx context.Context, task *runnerv1.Task, reporter *report.
|
|||
if inputsRaw, ok := preset.Event["inputs"]; ok {
|
||||
inputs, _ = inputsRaw.(map[string]string)
|
||||
}
|
||||
} else {
|
||||
// If the inputs are not set, make sure it is not nil.
|
||||
// Otherwise the runner will fail to parse the workflow.
|
||||
inputs = make(map[string]string)
|
||||
}
|
||||
|
||||
runnerConfig := &runner.Config{
|
||||
|
|
Loading…
Add table
Reference in a new issue