Added auth for private servers #7

Merged
Philipp merged 30 commits from added-local-auth into main 2023-11-26 22:24:20 +01:00
Showing only changes of commit 7f5df4a59e - Show all commits

View File

@ -119,8 +119,8 @@ async function postCode() {
api = new ScreepsAPI(login_arguments);
} else {
core.info(`Logging into as usewr ${username}`);
api = new ScreepsAPI();
api.auth(username, password, login_arguments);
api = new ScreepsAPI(login_arguments);
api.auth(username, password);
}
const response = await api.code.set(branch, files_to_push);
core.info(JSON.stringify(response, null, 2));