diff --git a/hack/actions/gen/main.go b/hack/actions/gen/main.go index 990b7ca8bc..9892907bcd 100644 --- a/hack/actions/gen/main.go +++ b/hack/actions/gen/main.go @@ -64,10 +64,10 @@ type ( } On struct { - Schedule Schedule `yaml:"schedule,omitempty"` - Push Push `yaml:"push"` - PullRequest Paths `yaml:"pull_request"` - PullRequestTarget Paths `yaml:"pull_request_target"` + Schedule Schedule `yaml:"schedule,omitempty"` + Push Push `yaml:"push"` + PullRequest PullRequest `yaml:"pull_request"` + PullRequestTarget PullRequest `yaml:"pull_request_target"` } Schedule []struct { @@ -79,8 +79,8 @@ type ( Tags []string `yaml:"tags"` } - Paths struct { - Paths []string `yaml:"paths"` + PullRequest struct { + Paths Paths `yaml:"paths"` } Jobs struct { @@ -97,6 +97,8 @@ type ( Target string `yaml:"target"` Platforms string `yaml:"platforms,omitempty"` } + + Paths []string ) type Data struct {