diff --git a/index.js b/index.js index 61a20f8..3e3fa40 100644 --- a/index.js +++ b/index.js @@ -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));