fix
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
jusax23 2022-11-08 15:02:05 +01:00
parent b64d1504bc
commit cc619f8d21

View file

@ -23,9 +23,9 @@ try {
branch = process.argv[5];
if (typeof branch != "string" || branch.length < 1) throw new Error("Invalid branch!");
tag = process.argv[6];
if (typeof tag != "string") throw new Error("Invalid uploadDir!");
uploadDir = process.argv[7];
if (typeof tag != "string") throw new Error("Invalid tag!");
uploadDir = process.argv[7];
if (typeof tag != "string") throw new Error("Invalid uplaodDir!");
message = process.argv[8] || "";
} catch (error) {
console.error("Invalid args", error);
@ -81,7 +81,6 @@ function createRelease(apiLink, repo, token, message, tag, branch) {
.then(d => d.json())
.then(json => {
let releaseID = json.id;
console.log(releaseID);
if (isNaN(releaseID)) {
return void rej("Invalid Id!");
}