This commit is contained in:
Louis Lam 2022-09-08 22:40:45 +08:00
parent 6601e9bbba
commit 0244507a07

View file

@ -19,10 +19,10 @@ console.log("Checkout pr");
// Checkout the pr
let result = childProcess.spawnSync("git", [ "remote", "add", name, `https://github.com/${name}/uptime-kuma` ]);
console.log(result.stdout);
console.error(result.stderr);
console.log(result.stdout.toString());
console.error(result.stderr.toString());
result = childProcess.spawnSync("git", [ "checkout", `name/${branch}`, "--force" ]);
result = childProcess.spawnSync("git", [ "checkout", `${name}/${branch}`, "--force" ]);
console.log(result.stdout);
console.error(result.stderr);
console.log(result.stdout.toString());
console.error(result.stderr.toString());