diff --git a/modules/structs/repo_actions.go b/modules/structs/repo_actions.go index af75bbd669..c36404ada8 100644 --- a/modules/structs/repo_actions.go +++ b/modules/structs/repo_actions.go @@ -38,8 +38,8 @@ type ActionTaskResponse struct { // swagger:model CreateActionWorkflowDispatch type CreateActionWorkflowDispatch struct { // required: true - Ref string `json:"ref"` - Inputs map[string]interface{} `json:"inputs"` + Ref string `json:"ref"` + Inputs map[string]any `json:"inputs"` } // ActionWorkflow represents a ActionWorkflow diff --git a/routers/api/v1/repo/action.go b/routers/api/v1/repo/action.go index 56eb11f2e1..004202be40 100644 --- a/routers/api/v1/repo/action.go +++ b/routers/api/v1/repo/action.go @@ -8,15 +8,15 @@ import ( "net/http" "strconv" "strings" - + + actions_model "code.gitea.io/gitea/models/actions" + "code.gitea.io/gitea/models/db" "code.gitea.io/gitea/models/perm" access_model "code.gitea.io/gitea/models/perm/access" + secret_model "code.gitea.io/gitea/models/secret" "code.gitea.io/gitea/models/unit" "code.gitea.io/gitea/modules/actions" "code.gitea.io/gitea/modules/git" - actions_model "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/db" - secret_model "code.gitea.io/gitea/models/secret" api "code.gitea.io/gitea/modules/structs" "code.gitea.io/gitea/modules/util" "code.gitea.io/gitea/modules/web"