From 7933a62f3a5859eb84aaae1520b1edd219c3c6ef Mon Sep 17 00:00:00 2001 From: Philipp Horstenkamp Date: Sun, 26 Nov 2023 21:48:39 +0100 Subject: [PATCH] Update the auth function --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 1f14433..dd49566 100644 --- a/index.js +++ b/index.js @@ -119,10 +119,12 @@ async function postCode() { core.info(JSON.stringify(response, null, 2)); } else { core.info(`Logging into as user ${username}`); + // await api.auth(username, password, login_arguments)); + // await api.auth(username, password, login_arguments)); const response = Promise.resolve() .then(() => api.auth(username, password, login_arguments)) .then(() => { - return api.code.set(branch, code); // Set the code on the specified branch + return api.code.set(branch, files_to_push); }) .then(() => { console.log("Code set successfully");