github

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: Unlicense Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Token      string
	Repository string
	Ref        string
	Sha        string
}

Context of current Github Actions workflow call.

func NewContext

func NewContext(jsonContext string) Context

func NewDefaultContext

func NewDefaultContext() Context

func (Context) CreateRelease

func (context Context) CreateRelease(artifacts []string) []error

func (Context) GetNaming

func (context Context) GetNaming(naming build.NamingSpec) build.NamingSpec

func (Context) IsGithubAction

func (context Context) IsGithubAction() bool

type ReleaseInfo

type ReleaseInfo struct {
	Context   `json:"-"`
	ID        int64  `json:"id"`
	Name      string `json:"name"`
	UploadURL string `json:"upload_url"`
}

Jump to

Keyboard shortcuts

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