Skip to content

Commit 2627e0f

Browse files
fix: action generation default field
1 parent e9917a7 commit 2627e0f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ func runPrintAction(cmd *cobra.Command, _ []string) {
215215
}
216216
input := deploy.GitHubActionInput{
217217
Description: field.Metadata["flag_usage"],
218-
Default: field.DefaultValue,
218+
Default: fmt.Sprintf("%v", field.DefaultValue),
219219
Required: required,
220220
}
221221
inputName := field.Metadata["action_input_name"]

pkg/deploy/action.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ type GitHubAction struct {
99

1010
type GitHubActionInput struct {
1111
Description string `yaml:"description"`
12-
Default any `yaml:"default,omitempty"`
12+
Default string `yaml:"default,omitempty"`
1313
Required bool `yaml:"required,omitempty"`
1414
}
1515

0 commit comments

Comments
 (0)