From a6c217fa401e193b5d2713936a432d1fa484ec61 Mon Sep 17 00:00:00 2001 From: rolljee Date: Thu, 12 Oct 2023 18:16:50 +0200 Subject: [PATCH] Update action --- index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 4290525..9207fa1 100644 --- a/index.js +++ b/index.js @@ -87,7 +87,12 @@ class Action { } catch (error) { console.log("Deployment failed with the following error:\n"); const logs = await this.getApplicationLogs(); - logs.forEach(log => console.log(log)); + + if (Array.isArray(logs)) { + logs.forEach((log) => console.log(log)); + } else { + console.log(logs); + } if (!this.inputs.rollback) { throw new Error(