diff --git a/src/scripts/builders/contribute.ts b/src/scripts/builders/contribute.ts index 0511823591..1dce2f6f64 100644 --- a/src/scripts/builders/contribute.ts +++ b/src/scripts/builders/contribute.ts @@ -264,7 +264,11 @@ const buildContributorDocs = async () => { latestRelease = `v${ latestRelease}`; } - await cloneLibraryRepo(clonedRepoPath, docsRepoUrl, latestRelease); + await cloneLibraryRepo( + clonedRepoPath, + process.env.P5_REPO_URL || docsRepoUrl, + process.env.P5_BRANCH || latestRelease, + ); // Clean out previous files console.log("Cleaning out current content collection..."); diff --git a/src/scripts/utils.ts b/src/scripts/utils.ts index c025eec050..82b228355d 100644 --- a/src/scripts/utils.ts +++ b/src/scripts/utils.ts @@ -35,6 +35,7 @@ export const cloneLibraryRepo = async ( shouldFixAbsolutePathInPreprocessor?: boolean } = {} ) => { + console.log(`Considering cloning repo: ${repoUrl} branch: ${branch} into path: ${localSavePath}`); const git = simpleGit(); const repoExists = await fileExistsAt(localSavePath);