Documentation
¶
Overview ¶
Package workflow provides discovery and parsing of GitHub Actions workflow files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶ added in v1.0.1
File represents a parsed GitHub Actions workflow file.
func Discover ¶
Discover finds all workflow files in the .github/workflows directory and returns only those with workflow_dispatch triggers.
func (File) GetInputs ¶ added in v1.0.1
GetInputs returns the workflow inputs, or empty map if none.
func (File) IsDispatchable ¶ added in v1.0.1
IsDispatchable returns true if the workflow has workflow_dispatch trigger.
type Input ¶ added in v1.0.1
type Input struct {
Description string `yaml:"description"`
Default string `yaml:"default"`
Type string `yaml:"type"`
Options []string `yaml:"options"`
ValidationRules []rule.ValidationRule `yaml:"-"`
Required bool `yaml:"required"`
}
Input represents a single input definition for workflow_dispatch.
Click to show internal directories.
Click to hide internal directories.