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

Function resolveSetupActionModeRef

pkg/workflow/action_reference.go:66–79  ·  view source on GitHub ↗
(ctx context.Context, actionTag string, version string, resolver SHAResolver, actionsOrgRepo string, localPath string)

Source from the content-addressed store, hash-verified

64}
65
66func resolveSetupActionModeRef(ctx context.Context, actionTag string, version string, resolver SHAResolver, actionsOrgRepo string, localPath string) string {
67 tag, ok := resolveSetupTag(actionTag, version, localPath)
68 if !ok {
69 return localPath
70 }
71 actionRepo := actionsOrgRepo + "/setup"
72 remoteRef := fmt.Sprintf("%s@%s", actionRepo, tag)
73 ref := tryResolveSetupSHA(ctx, resolver, actionRepo, tag, remoteRef, "Action mode")
74 if ref != "" {
75 return ref
76 }
77 actionRefLog.Printf("Action mode: using tag-based external actions repo reference: %s (SHA will be resolved later)", remoteRef)
78 return remoteRef
79}
80
81func resolveSetupReleaseModeRef(ctx context.Context, actionTag string, version string, resolver SHAResolver, localPath string) string {
82 tag, ok := resolveSetupTag(actionTag, version, localPath)

Callers 1

resolveSetupActionRefFunction · 0.85

Calls 3

resolveSetupTagFunction · 0.85
tryResolveSetupSHAFunction · 0.85
PrintfMethod · 0.45

Tested by

no test coverage detected