ghaction

package
v0.1.27 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TaskName is the name of the GitHub action request task
	TaskName string = "notification/github-workflow"
	// DefaultRef is default github reference (branch)
	DefaultRef string = "master"
)

Variables

This section is empty.

Functions

func Make

func Make(t *v2alpha2.TaskSpec) (core.Task, error)

Make converts an spec to a task.

Types

type Inputs

type Inputs struct {
	Repository    string                `json:"repository" yaml:"repository"`
	Workflow      string                `json:"workflow" yaml:"workflow"`
	Secret        string                `json:"secret" yaml:"secret"`
	Ref           *string               `json:"ref,omitempty" yaml:"ref,omitempty"`
	WFInputs      []v2alpha2.NamedValue `json:"inputs,omitempty" yaml:"inputs,omitempty"`
	VersionInfo   []core.VersionInfo    `json:"versionInfo,omitempty" yaml:"versionInfo,omitempty"`
	IgnoreFailure *bool                 `json:"ignoreFailure,omitempty" yaml:"ignoreFailure,omitempty"`
}

Inputs contain the name and arguments of the task.

type Task

type Task struct {
	core.TaskMeta `json:",inline" yaml:",inline"`
	With          Inputs `json:"with" yaml:"with"`
}

Task encapsulates the task.

func (*Task) Run

func (t *Task) Run(ctx context.Context) error

Run the task. Ignores failures unless the task indicates ignoreFailures: false

func (*Task) ToHTTPTask

func (t *Task) ToHTTPTask() *http.Task

ToHTTPTask converts a Task to an http Task

Jump to

Keyboard shortcuts

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