This commit is contained in:
parent
7141ce09e4
commit
13a4c02f45
5
index.js
5
index.js
@ -107,6 +107,7 @@ async function postCode() {
|
|||||||
"path": path,
|
"path": path,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
core.info(`Trying to upload the following files to ${branch}:`)
|
||||||
Object.keys(login_arguments).forEach(key => {
|
Object.keys(login_arguments).forEach(key => {
|
||||||
core.info(`Key: ${key}`);
|
core.info(`Key: ${key}`);
|
||||||
});
|
});
|
||||||
@ -117,13 +118,9 @@ async function postCode() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
core.info(JSON.stringify(login_arguments, null, 2));
|
|
||||||
|
|
||||||
const api = new ScreepsAPI(login_arguments);
|
const api = new ScreepsAPI(login_arguments);
|
||||||
core.info(`Pushing to branch ${branch}`)
|
|
||||||
const response = await api.code.set(branch, files_to_push);
|
const response = await api.code.set(branch, files_to_push);
|
||||||
core.info(JSON.stringify(response, null, 2));
|
core.info(JSON.stringify(response, null, 2));
|
||||||
core.info(JSON.stringify(response.json, null, 2));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
postCode();
|
postCode();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user