Documentation ¶
Overview ¶
Package gha provides functionality for working with GitHub Actions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WorkflowsPath = path.Join(".github", "workflows")
WorkflowsPath is the relative path to the GitHub Actions workflow directory.
Functions ¶
This section is empty.
Types ¶
type GitHubAction ¶
type GitHubAction struct { // Owner is the GitHub user or organization that owns the repository that // houses the GitHub Action. Owner string // Project is the name of the GitHub repository (excluding the owner) that // houses the GitHub Action. Project string // Ref is the git ref (branch, tag, commit SHA), also known as version, of the // GitHub Action. Ref string }
A GitHubAction identifies a specific version of a GitHub Action.
func RepoActions ¶
func RepoActions(repo fs.FS) ([]GitHubAction, error)
RepoActions extracts the GitHub RepoActions used in the repository at the given file system hierarchy.
Click to show internal directories.
Click to hide internal directories.