Prevent crashing when github is not up to date yet
This commit is contained in:
@ -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,18 +267,22 @@ export async function downloadAndUnzip(
|
|||||||
child_process.execSync(`npm install -g putasset`);
|
child_process.execSync(`npm install -g putasset`);
|
||||||
}
|
}
|
||||||
|
|
||||||
child_process.execFileSync("putasset", [
|
try {
|
||||||
"--owner",
|
child_process.execFileSync("putasset", [
|
||||||
"keycloakify",
|
"--owner",
|
||||||
"--repo",
|
"keycloakify",
|
||||||
"keycloakify",
|
"--repo",
|
||||||
"--tag",
|
"keycloakify",
|
||||||
"v0.0.1",
|
"--tag",
|
||||||
"--filename",
|
"v0.0.1",
|
||||||
zipFilePath,
|
"--filename",
|
||||||
"--token",
|
zipFilePath,
|
||||||
githubToken
|
"--token",
|
||||||
]);
|
githubToken
|
||||||
|
]);
|
||||||
|
} catch {
|
||||||
|
console.log("upload failed, asset probably already exists in remote cache");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user