mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 11:52:10 +00:00
Fix boolean inputs in workflow_dispatch; closes #5425
This commit is contained in:
parent
c4d2635839
commit
96c4ca249a
2 changed files with 6 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
// Copyright The Forgejo Authors.
|
||||
// SPDX-License-Identifier: MIT
|
||||
// Copyright 2024 The Forgejo Authors.
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
package actions
|
||||
|
||||
|
@ -43,7 +43,7 @@ func ManualRunWorkflow(ctx *context_module.Context) {
|
|||
|
||||
formKeyGetter := func(key string) string {
|
||||
formKey := "inputs[" + key + "]"
|
||||
return ctx.FormString(formKey)
|
||||
return ctx.Req.PostFormValue(formKey)
|
||||
}
|
||||
|
||||
if err := workflow.Dispatch(ctx, formKeyGetter, ctx.Repo.Repository, ctx.Doer); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue