parent
b64d1504bc
commit
cc619f8d21
1 changed files with 2 additions and 3 deletions
|
@ -23,9 +23,9 @@ try {
|
||||||
branch = process.argv[5];
|
branch = process.argv[5];
|
||||||
if (typeof branch != "string" || branch.length < 1) throw new Error("Invalid branch!");
|
if (typeof branch != "string" || branch.length < 1) throw new Error("Invalid branch!");
|
||||||
tag = process.argv[6];
|
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!");
|
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] || "";
|
message = process.argv[8] || "";
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Invalid args", error);
|
console.error("Invalid args", error);
|
||||||
|
@ -81,7 +81,6 @@ function createRelease(apiLink, repo, token, message, tag, branch) {
|
||||||
.then(d => d.json())
|
.then(d => d.json())
|
||||||
.then(json => {
|
.then(json => {
|
||||||
let releaseID = json.id;
|
let releaseID = json.id;
|
||||||
console.log(releaseID);
|
|
||||||
if (isNaN(releaseID)) {
|
if (isNaN(releaseID)) {
|
||||||
return void rej("Invalid Id!");
|
return void rej("Invalid Id!");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue