Reworked the username.
All checks were successful
Lint / pre-commit Linting (push) Successful in 53s

This commit is contained in:
Philipp Horstenkamp 2023-11-26 19:59:04 +01:00
parent bc56766110
commit 9be17fd1a0
Signed by: Philipp
GPG Key ID: DD53EAC36AFB61B4

View File

@ -119,7 +119,8 @@ async function postCode() {
api = new ScreepsAPI(login_arguments); api = new ScreepsAPI(login_arguments);
} else { } else {
core.info(`Logging into as usewr ${username}`); core.info(`Logging into as usewr ${username}`);
api = new ScreepsAPI(username, password, login_arguments); api = new ScreepsAPI();
api.auth(username, password, login_arguments);
} }
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));