Skip to content

Commit 855103d

Browse files
committed
use string value type for Inputs (instead of any)
1 parent 7c2a6e0 commit 855103d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

modules/structs/repo_actions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ type CreateActionWorkflowDispatch struct {
4040
// example: refs/heads/main
4141
Ref string `json:"ref" binding:"Required"`
4242
// required: false
43-
Inputs map[string]any `json:"inputs,omitempty"`
43+
Inputs map[string]string `json:"inputs,omitempty"`
4444
}
4545

4646
// ActionWorkflow represents a ActionWorkflow

tests/integration/actions_trigger_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ func TestWorkflowDispatchPublicApiJSON(t *testing.T) {
865865
assert.NoError(t, err)
866866
inputs := &api.CreateActionWorkflowDispatch{
867867
Ref: "main",
868-
Inputs: map[string]any{
868+
Inputs: map[string]string{
869869
"myinput": "val0",
870870
"myinput3": "true",
871871
},
@@ -943,7 +943,7 @@ func TestWorkflowDispatchPublicApiWithInputsJSON(t *testing.T) {
943943
assert.NoError(t, err)
944944
inputs := &api.CreateActionWorkflowDispatch{
945945
Ref: "main",
946-
Inputs: map[string]any{
946+
Inputs: map[string]string{
947947
"myinput": "val0",
948948
"myinput3": "true",
949949
},
@@ -1057,7 +1057,7 @@ func TestWorkflowDispatchPublicApiWithInputsNonDefaultBranchJSON(t *testing.T) {
10571057
assert.NoError(t, err)
10581058
inputs := &api.CreateActionWorkflowDispatch{
10591059
Ref: "refs/heads/dispatch",
1060-
Inputs: map[string]any{
1060+
Inputs: map[string]string{
10611061
"myinput": "val0",
10621062
"myinput3": "true",
10631063
},
@@ -1198,7 +1198,7 @@ func TestWorkflowApi(t *testing.T) {
11981198

11991199
inputs := &api.CreateActionWorkflowDispatch{
12001200
Ref: "main",
1201-
Inputs: map[string]any{
1201+
Inputs: map[string]string{
12021202
"myinput": "val0",
12031203
"myinput3": "true",
12041204
},
@@ -1246,7 +1246,7 @@ func TestWorkflowApi(t *testing.T) {
12461246
assert.NoError(t, err)
12471247
inputs = &api.CreateActionWorkflowDispatch{
12481248
Ref: "main",
1249-
Inputs: map[string]any{
1249+
Inputs: map[string]string{
12501250
"myinput": "val0",
12511251
"myinput3": "true",
12521252
},

0 commit comments

Comments
 (0)