Skip to content

Commit 380cbba

Browse files
authored
Merge pull request #2349 from input-output-hk/dlachaume/fix-job-succeed-with-notification-failure
Fix: `notify-on-failure` job succeeds despite email sending failure
2 parents 83c1357 + a186712 commit 380cbba

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/nightly-dispatcher.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ jobs:
2424
uses: ./.github/workflows/test-notify-on-failure.yml
2525
needs: [docker-builds, aggregator-stress-test, test-client]
2626
if: failure()
27+
secrets: inherit

.github/workflows/scripts/notify-nightly-failure.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,7 @@ sgMail
3232
console.log("Mail sent successfully");
3333
console.log("Message details:", msg);
3434
})
35-
.catch((error) => console.error("Error sending email:", error));
35+
.catch((error) => {
36+
console.error("Error sending email:", error);
37+
process.exit(1);
38+
});

0 commit comments

Comments
 (0)