Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrWrongCIProvider = errors.New("wrong ci provider")
)
Functions ¶
This section is empty.
Types ¶
type CIProvider ¶
type GithubActionsDetector ¶
type GithubActionsDetector struct{}
func (*GithubActionsDetector) InferContext ¶
func (g *GithubActionsDetector) InferContext() (CIContext, error)
InferContext infers the CIContext using environment variables It assumes the correct provider was identified via IsProvider For more reference of what each environment variable represents, Check Github Action's documentation at https://docs.github.com/en/actions/learn-github-actions/environment-variables
func (*GithubActionsDetector) IsProvider ¶
func (*GithubActionsDetector) IsProvider() bool
Click to show internal directories.
Click to hide internal directories.