diff --git a/pkg/runner/step_action_remote.go b/pkg/runner/step_action_remote.go index 28a49d0..c113284 100644 --- a/pkg/runner/step_action_remote.go +++ b/pkg/runner/step_action_remote.go @@ -215,9 +215,14 @@ type remoteAction struct { } func (ra *remoteAction) CloneURL(u string) string { - if !strings.HasPrefix(u, "http://") && !strings.HasPrefix(u, "https://") { - u = "https://" + u + if ra.URL == "" { + if !strings.HasPrefix(u, "http://") && !strings.HasPrefix(u, "https://") { + u = "https://" + u + } + } else { + u = ra.URL } + return fmt.Sprintf("%s/%s/%s", u, ra.Org, ra.Repo) }