MCPcopy Create free account
hub / github.com/github/gh-aw / ResolveSetupActionReference

Function ResolveSetupActionReference

pkg/workflow/action_reference.go:38–40  ·  view source on GitHub ↗

ResolveSetupActionReference resolves the actions/setup action reference based on action mode and version. This is a standalone helper function that can be used by both Compiler methods and standalone workflow generators (like maintenance workflow) that don't have access to WorkflowData. Parameters:

(ctx context.Context, actionMode ActionMode, version string, actionTag string, resolver SHAResolver)

Source from the content-addressed store, hash-verified

36// - For action mode without resolver: "github/gh-aw-actions/setup@<version>" (tag-based, SHA resolved later)
37// - Falls back to local path if version is invalid in release/action mode
38func ResolveSetupActionReference(ctx context.Context, actionMode ActionMode, version string, actionTag string, resolver SHAResolver) string {
39 return resolveSetupActionRef(ctx, actionMode, version, actionTag, resolver, "")
40}
41
42// resolveSetupActionRef is the internal implementation of ResolveSetupActionReference
43// that accepts an optional actionsOrgRepo override. When actionsOrgRepo is empty,

Calls 1

resolveSetupActionRefFunction · 0.85