This commit is contained in:
parent
c69726c600
commit
dbd765cbdf
3
index.js
3
index.js
@ -113,9 +113,8 @@ async function postCode() {
|
||||
core.error(errorMessage);
|
||||
return;
|
||||
}
|
||||
let api;
|
||||
let api = new ScreepsAPI(login_arguments);
|
||||
if (token) {
|
||||
api = new ScreepsAPI(login_arguments);
|
||||
const response = await api.code.set(branch, files_to_push);
|
||||
core.info(JSON.stringify(response, null, 2));
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user