From d241d51744155e8a791612154311a0ebcaddee73 Mon Sep 17 00:00:00 2001 From: Philipp Horstenkamp Date: Sun, 26 Nov 2023 22:19:27 +0100 Subject: [PATCH] Reworked the result. --- index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 9eaadfb..e60b4cd 100644 --- a/index.js +++ b/index.js @@ -124,15 +124,16 @@ async function postCode() { response = await Promise.resolve() .then(() => api.auth(username, password, login_arguments)) .then(() => { - response = api.code.set(branch, files_to_push); + api.code.set(branch, files_to_push); }) - .then(() => { + .then((result) => { + response = result; console.log(`Code set successfully to ${branch}`); }) .catch((err) => { console.error("Error:", err); }); - core.info(JSON.stringify(await response)); + core.info(JSON.stringify(response)); } }