From 9be17fd1a040c874aacbe2690bacc224975f9885 Mon Sep 17 00:00:00 2001 From: Philipp Horstenkamp Date: Sun, 26 Nov 2023 19:59:04 +0100 Subject: [PATCH] Reworked the username. --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 8e1b967..61a20f8 100644 --- a/index.js +++ b/index.js @@ -119,7 +119,8 @@ async function postCode() { api = new ScreepsAPI(login_arguments); } else { 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); core.info(JSON.stringify(response, null, 2));