From 8eebf7bb27f82afbab0a44b6589aa0817b4f259a Mon Sep 17 00:00:00 2001 From: Philipp Horstenkamp Date: Sun, 26 Nov 2023 21:58:22 +0100 Subject: [PATCH] Added an awit token --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index 15362b8..bc61ea8 100644 --- a/index.js +++ b/index.js @@ -119,7 +119,7 @@ async function postCode() { core.info(JSON.stringify(response, null, 2)); } else { core.info(`Logging into as user ${username}`); - const response = Promise.resolve() + const response = await Promise.resolve() .then(() => api.auth(username, password, login_arguments)) .then(() => { return api.code.set(branch, files_to_push); @@ -131,7 +131,6 @@ async function postCode() { console.error("Error:", err); }); core.info("Authorized!"); - core.info(JSON.stringify(response, null, 2)); } }