diff --git a/automation/utils/src/git.ts b/automation/utils/src/git.ts index ef2559e4dd..4acafc68a9 100644 --- a/automation/utils/src/git.ts +++ b/automation/utils/src/git.ts @@ -1,6 +1,9 @@ import { exec } from "./shell"; function getGHRepoAuthUrl(repoUrl: string): string { + if (!process.env.CI) { + return repoUrl; + } const url = new URL(repoUrl); const { GH_USERNAME, GH_PAT } = process.env; if (!GH_USERNAME || !GH_PAT) { diff --git a/automation/utils/src/steps.ts b/automation/utils/src/steps.ts index f63667d7d2..e2520ee09a 100644 --- a/automation/utils/src/steps.ts +++ b/automation/utils/src/steps.ts @@ -46,9 +46,8 @@ export async function cloneTestProject({ info, config }: CommonStepParams): Prom logStep("Clone test project"); const { testProject } = info; - const clone = process.env.CI ? cloneRepoShallow : cloneRepo; rm("-rf", config.paths.targetProject); - await clone({ + await cloneRepoShallow({ remoteUrl: testProject!.githubUrl, branch: testProject!.branchName, localFolder: config.paths.targetProject