Skip to content

Commit

Permalink
Update action
Browse files Browse the repository at this point in the history
  • Loading branch information
rolljee committed Oct 12, 2023
1 parent fdf2c18 commit a6c217f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit a6c217f

Please sign in to comment.