First development of the deploy action #6

Merged
Philipp merged 14 commits from develop-action into main 2023-11-26 18:31:53 +01:00
1039 changed files with 228400 additions and 0 deletions
Showing only changes of commit 13a4c02f45 - Show all commits

View File

@ -107,6 +107,7 @@ async function postCode() {
"path": path,
};
core.info(`Trying to upload the following files to ${branch}:`)
Object.keys(login_arguments).forEach(key => {
core.info(`Key: ${key}`);
});
@ -117,13 +118,9 @@ async function postCode() {
return;
}
core.info(JSON.stringify(login_arguments, null, 2));
const api = new ScreepsAPI(login_arguments);
core.info(`Pushing to branch ${branch}`)
const response = await api.code.set(branch, files_to_push);
core.info(JSON.stringify(response, null, 2));
core.info(JSON.stringify(response.json, null, 2));
}
postCode();