ghactions

package
v0.0.0-...-7426b64 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GithubActions

type GithubActions struct {
	// contains filtered or unexported fields
}

func New

func New(primer primeable) *GithubActions

func (*GithubActions) Run

func (g *GithubActions) Run(p *Params) error

type Params

type Params struct{}

type Workflow

type Workflow struct {
	Name string                 `yaml:"name,omitempty"`
	On   WorkflowTrigger        `yaml:"on"`
	Jobs map[string]WorkflowJob `yaml:"jobs"`
}

type WorkflowBranches

type WorkflowBranches struct {
	Branches []string `yaml:"branches"`
}

type WorkflowJob

type WorkflowJob struct {
	Env    map[string]interface{} `yaml:"env,omitempty"`
	RunsOn string                 `yaml:"runs-on,omitempty"`
	Steps  []WorkflowStep         `yaml:"steps,omitempty"`
}

type WorkflowStep

type WorkflowStep struct {
	Name  string `yaml:"name,omitempty"`
	Uses  string `yaml:"uses,omitempty"`
	Run   string `yaml:"run,omitempty"`
	Shell string `yaml:"shell,omitempty"`
}

type WorkflowTrigger

type WorkflowTrigger struct {
	Push        WorkflowBranches `yaml:"push"`
	PullRequest WorkflowBranches `yaml:"pull_request"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL