Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Ref ¶
type Ref struct {
Owner string // "actions"
Repo string // "cache"
Subpath string // "save" for actions/cache/save@v3 (no leading slash, empty if none)
Ref string // raw ref as written (branch/tag/SHA)
IsSHA bool // 40-char hex
// Comment fields are only populated when the source line had `# ...`.
SrcRef string // first whitespace-delimited token after `#`
CommentTail string // remainder of comment after SrcRef (preserved as-is incl. leading space)
}
Ref is a parsed `uses:` action reference.
func ParseUsesValue ¶
ParseUsesValue parses the value portion of a `uses:` directive (the bit after `uses:`), e.g. "actions/checkout@v3 # v3 extra". Returns ok=false for non-pinnable values (docker://, ./local, malformed).
Click to show internal directories.
Click to hide internal directories.