(ctx context.Context, actionTag string, version string, resolver SHAResolver, actionsOrgRepo string, localPath string)
| 64 | } |
| 65 | |
| 66 | func 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 | |
| 81 | func resolveSetupReleaseModeRef(ctx context.Context, actionTag string, version string, resolver SHAResolver, localPath string) string { |
| 82 | tag, ok := resolveSetupTag(actionTag, version, localPath) |
no test coverage detected