From 5fc053cd7605ec0463550205d6a7f868a9d72227 Mon Sep 17 00:00:00 2001 From: Philipp Horstenkamp Date: Sun, 26 Nov 2023 22:14:09 +0100 Subject: [PATCH] Changed a docstring and added an await. --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 40d0a52..9eaadfb 100644 --- a/index.js +++ b/index.js @@ -117,9 +117,10 @@ async function postCode() { if (token) { const response = await api.code.set(branch, files_to_push); core.info(JSON.stringify(response, null, 2)); + console.log(`Code set successfully to ${branch}`); } else { let response; - core.info(`Logging into as user ${username}`); + core.info(`Logging in as user ${username}`); response = await Promise.resolve() .then(() => api.auth(username, password, login_arguments)) .then(() => { @@ -131,7 +132,7 @@ async function postCode() { .catch((err) => { console.error("Error:", err); }); - core.info(JSON.stringify(response)); + core.info(JSON.stringify(await response)); } }