mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
ids token
This commit is contained in:
1 parent
e27cc3f6ed
commit
0df27c38a1
2 files changed
+9
-4
No files matched your search
@@ -46,7 +46,12 @@ await rm(WORKING_DIR, { recursive: true, force: true });
|
||||
|
||||
console.log(`Cloning ${REPO} to ${WORKING_DIR}`);
|
||||
|
||||
await $`git clone --depth 1 https://github.com/${REPO} ${WORKING_DIR}`;
|
||||
const token = process.env.GH_TOKEN;
|
||||
const repoUrl = token
|
||||
? `https://x-access-token:${token}@github.com/${REPO}.git`
|
||||
: `https://github.com/${REPO}.git`;
|
||||
|
||||
await $`git clone --depth 1 ${repoUrl} ${WORKING_DIR}`;
|
||||
await mkdir(CHUNKS_DIR, { recursive: true });
|
||||
|
||||
console.log(`Discovering pre-existing chunks...`);
|
||||
|
||||
Reference in new issue
Block a user