Documentation ¶
Index ¶
- type Concurrency
- type Container
- type Credentials
- type Defaults
- type Environment
- type Event
- type Input
- type Job
- type Matrix
- type On
- type Permissions
- type Pipeline
- type PullRequest
- type PullRequestTarget
- type Push
- type Run
- type Schedule
- type ScheduleItem
- type Secrets
- type Service
- type Step
- type Strategy
- type Stringorslice
- type WorkflowCall
- type WorkflowCallSecret
- type WorkflowDispatch
- type WorkflowRun
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Concurrency ¶
type Concurrency struct { Group string `yaml:"group,omitempty"` CancelInProgress bool `yaml:"cancel-in-progress,omitempty"` }
func (*Concurrency) UnmarshalYAML ¶
func (v *Concurrency) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements the unmarshal interface.
type Container ¶
type Container struct { Image string `yaml:"image,omitempty"` Env map[string]string `yaml:"env,omitempty"` Ports []string `yaml:"ports,omitempty"` Volumes []string `yaml:"volumes,omitempty"` Options string `yaml:"options,omitempty"` Credentials *Credentials `yaml:"credentials,omitempty"` }
func (*Container) UnmarshalYAML ¶
type Credentials ¶
type Environment ¶
func (*Environment) UnmarshalYAML ¶
func (v *Environment) UnmarshalYAML(unmarshal func(interface{}) error) error
type Job ¶
type Job struct { Concurrency *Concurrency `yaml:"concurrency,omitempty"` Container *Container `yaml:"container,omitempty"` ContinueOnErr bool `yaml:"continue-on-error,omitempty"` // TODO string instead of bool? `continue-on-error: ${{ matrix.experimental }}` Defaults *Defaults `yaml:"defaults,omitempty"` Env map[string]string `yaml:"env,omitempty"` Environment *Environment `yaml:"environment,omitempty"` If string `yaml:"if,omitempty"` Name string `yaml:"name,omitempty"` Needs Stringorslice `yaml:"needs,omitempty"` Outputs map[string]string `yaml:"outputs,omitempty"` Permissions *Permissions `yaml:"permissions,omitempty"` RunsOn string `yaml:"runs-on,omitempty"` Secrets *Secrets `yaml:"secrets,omitempty"` Services map[string]*Service `yaml:"services,omitempty"` Steps []*Step `yaml:"steps,omitempty"` Strategy *Strategy `yaml:"strategy,omitempty"` TimeoutMin int `yaml:"timeout-minutes,omitempty"` Uses string `yaml:"uses,omitempty"` With map[string]string `yaml:"with,omitempty"` }
type On ¶
type On struct { BranchProtectionRule *Event `yaml:"branch_protection_rule,omitempty"` CheckRun *Event `yaml:"check_run,omitempty"` CheckSuite *Event `yaml:"check_suite,omitempty"` Create *struct{} `yaml:"create,omitempty"` Delete *struct{} `yaml:"delete,omitempty"` Deployment *struct{} `yaml:"deployment,omitempty"` DeploymentStatus *struct{} `yaml:"deployment_status,omitempty"` Discussion *Event `yaml:"discussion,omitempty"` DiscussionComment *Event `yaml:"discussion_comment,omitempty"` Fork *struct{} `yaml:"fork,omitempty"` Gollum *struct{} `yaml:"gollum,omitempty"` IssueComment *Event `yaml:"issue_comment,omitempty"` Issues *Event `yaml:"issues,omitempty"` Label *Event `yaml:"label,omitempty"` Member *Event `yaml:"member,omitempty"` MergeGroup *Event `yaml:"merge_group,omitempty"` Milestone *Event `yaml:"milestone,omitempty"` PageBuild *struct{} `yaml:"page_build,omitempty"` Project *Event `yaml:"project,omitempty"` ProjectCard *Event `yaml:"project_card,omitempty"` ProjectColumn *Event `yaml:"project_column,omitempty"` Public *struct{} `yaml:"public,omitempty"` PullRequest *PullRequest `yaml:"pull_request,omitempty"` PullRequestReview *Event `yaml:"pull_request_review,omitempty"` PullRequestReviewComment *Event `yaml:"pull_request_review_comment,omitempty"` PullRequestTarget *PullRequestTarget `yaml:"pull_request_target,omitempty"` Push *Push `yaml:"push,omitempty"` RegistryPackage *Event `yaml:"registry_package,omitempty"` RepositoryDispatch *Event `yaml:"repository_dispatch,omitempty"` Release *Event `yaml:"release,omitempty"` Schedule *Schedule `yaml:"schedule,omitempty"` Status *struct{} `yaml:"status,omitempty"` Watch *Event `yaml:"watch,omitempty"` WorkflowCall *WorkflowCall `yaml:"workflow_call,omitempty"` WorkflowDispatch *WorkflowDispatch `yaml:"workflow_dispatch,omitempty"` WorkflowRun *WorkflowRun `yaml:"workflow_run,omitempty"` }
func (*On) UnmarshalYAML ¶
UnmarshalYAML implements the unmarshal interface for WorkflowTriggers.
type Permissions ¶
type Permissions struct { Actions string `yaml:"actions,omitempty"` Checks string `yaml:"checks,omitempty"` Contents string `yaml:"contents,omitempty"` Deployments string `yaml:"deployments,omitempty"` IDToken string `yaml:"id-token,omitempty"` Issues string `yaml:"issues,omitempty"` Discussions string `yaml:"discussions,omitempty"` Packages string `yaml:"packages,omitempty"` Pages string `yaml:"pages,omitempty"` PullRequests string `yaml:"pull-requests,omitempty"` RepositoryProjects string `yaml:"repository-projects,omitempty"` SecurityEvents string `yaml:"security-events,omitempty"` Statuses string `yaml:"statuses,omitempty"` ReadAll bool `yaml:"-"` WriteAll bool `yaml:"-"` }
func (*Permissions) MarshalYAML ¶
func (v *Permissions) MarshalYAML() (interface{}, error)
MarshalYAML implements the marshal interface.
func (*Permissions) UnmarshalYAML ¶
func (v *Permissions) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements the unmarshal interface for WorkflowTriggers.
type Pipeline ¶
type Pipeline struct { Concurrency *Concurrency `yaml:"concurrency,omitempty"` Defaults *Defaults `yaml:"defaults,omitempty"` Env map[string]string `yaml:"env,omitempty"` Jobs map[string]*Job `yaml:"jobs,omitempty"` Name string `yaml:"name,omitempty"` On *On `yaml:"on,omitempty"` Permissions *Permissions `yaml:"permissions,omitempty"` RunName string `yaml:"run-name,omitempty"` }
func ParseBytes ¶
ParseBytes parses the configuration from bytes b.
func ParseString ¶
ParseString parses the configuration from string s.
type PullRequest ¶
type PullRequest struct { Branches []string `yaml:"branches,omitempty"` BranchesIgnore []string `yaml:"branches-ignore,omitempty"` Paths []string `yaml:"paths,omitempty"` PathsIgnore []string `yaml:"paths-ignore,omitempty"` Tags []string `yaml:"tags,omitempty"` TagsIgnore []string `yaml:"tags-ignore,omitempty"` Types []string `yaml:"types,omitempty"` ReviewApproved bool `yaml:"review-approved,omitempty"` ReviewDismissed bool `yaml:"review-dismissed,omitempty"` }
type PullRequestTarget ¶
type Push ¶
type Push struct { Branches []string `yaml:"branches,omitempty"` BranchesIgnore []string `yaml:"branches-ignore,omitempty"` Paths []string `yaml:"paths,omitempty"` PathsIgnore []string `yaml:"paths-ignore,omitempty"` Tags []string `yaml:"tags,omitempty"` TagsIgnore []string `yaml:"tags-ignore,omitempty"` }
type Schedule ¶
type Schedule struct {
Items []*ScheduleItem
}
func (*Schedule) MarshalYAML ¶
MarshalYAML implements the marshal interface.
func (*Schedule) UnmarshalYAML ¶
UnmarshalYAML implements the unmarshal interface for WorkflowTriggers.
type ScheduleItem ¶
type ScheduleItem struct {
Cron string `yaml:"cron,omitempty"`
}
type Secrets ¶
func (*Secrets) MarshalYAML ¶
MarshalYAML implements the marshal interface.
func (*Secrets) UnmarshalYAML ¶
UnmarshalYAML implements the unmarshal interface.
type Service ¶
type Service struct { Env map[string]string `yaml:"env,omitempty"` Image string `yaml:"image,omitempty"` Networks []string `yaml:"networks,omitempty"` Options []string `yaml:"options,omitempty"` Ports []string `yaml:"ports,omitempty"` Volumes []string `yaml:"volumes,omitempty"` Credentials *Credentials `yaml:"credentials,omitempty"` }
type Step ¶
type Step struct { ContinueOnErr bool `yaml:"continue-on-error,omitempty"` Env map[string]string `yaml:"env,omitempty"` If string `yaml:"if,omitempty"` Name string `yaml:"name,omitempty"` Run string `yaml:"run,omitempty"` Timeout int `yaml:"timeout-minutes,omitempty"` With map[string]interface{} `yaml:"with,omitempty"` Uses string `yaml:"uses,omitempty"` }
type Stringorslice ¶
type Stringorslice []string
Stringorslice represents a string or an array of strings.
func (*Stringorslice) UnmarshalYAML ¶
func (s *Stringorslice) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements the unmarshal interface.
type WorkflowCall ¶
type WorkflowCall struct { Inputs map[string]interface{} `yaml:"inputs,omitempty"` Outputs map[string]interface{} `yaml:"outputs,omitempty"` Secrets map[string]*WorkflowCallSecret `yaml:"secrets,omitempty"` Workflows []string `yaml:"workflows,omitempty"` }