Prevent crashing when github is not up to date yet
This commit is contained in:
parent
e1b52e7439
commit
4ad7183d7e
@ -17,7 +17,7 @@ const isSilent = true;
|
|||||||
const logger = getLogger({ isSilent });
|
const logger = getLogger({ isSilent });
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
const keycloakVersion = "23.0.4";
|
const keycloakVersion = "11.0.3";
|
||||||
|
|
||||||
const tmpDirPath = pathJoin(getProjectRoot(), "tmp_xImOef9dOd44");
|
const tmpDirPath = pathJoin(getProjectRoot(), "tmp_xImOef9dOd44");
|
||||||
|
|
||||||
|
@ -267,6 +267,7 @@ export async function downloadAndUnzip(
|
|||||||
child_process.execSync(`npm install -g putasset`);
|
child_process.execSync(`npm install -g putasset`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
child_process.execFileSync("putasset", [
|
child_process.execFileSync("putasset", [
|
||||||
"--owner",
|
"--owner",
|
||||||
"keycloakify",
|
"keycloakify",
|
||||||
@ -279,6 +280,9 @@ export async function downloadAndUnzip(
|
|||||||
"--token",
|
"--token",
|
||||||
githubToken
|
githubToken
|
||||||
]);
|
]);
|
||||||
|
} catch {
|
||||||
|
console.log("upload failed, asset probably already exists in remote cache");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user