From 2abbb6f54fe9e2903dea2d2263d2aee6dc0e2c67 Mon Sep 17 00:00:00 2001 From: Kevin Brian Bader Date: Tue, 30 Jul 2024 17:30:25 -0700 Subject: [PATCH] marks workflow successful regardless of outcome -> no notifications are sent to issue's subscribers --- .github/actions/javascript/proposalPoliceComment/index.js | 4 +++- .../javascript/proposalPoliceComment/proposalPoliceComment.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/actions/javascript/proposalPoliceComment/index.js b/.github/actions/javascript/proposalPoliceComment/index.js index 49dbe3b52cf7..a24a2e507daa 100644 --- a/.github/actions/javascript/proposalPoliceComment/index.js +++ b/.github/actions/javascript/proposalPoliceComment/index.js @@ -18061,7 +18061,9 @@ async function run() { } run().catch((error) => { console.error(error); - process.exit(1); + // Zero status ensures that the action is marked as successful regardless the outcome + // which means that no failure notification is sent to issue's subscribers + process.exit(0); }); diff --git a/.github/actions/javascript/proposalPoliceComment/proposalPoliceComment.ts b/.github/actions/javascript/proposalPoliceComment/proposalPoliceComment.ts index 5a48bf06feee..fa18ae833768 100644 --- a/.github/actions/javascript/proposalPoliceComment/proposalPoliceComment.ts +++ b/.github/actions/javascript/proposalPoliceComment/proposalPoliceComment.ts @@ -103,5 +103,7 @@ async function run() { run().catch((error) => { console.error(error); - process.exit(1); + // Zero status ensures that the action is marked as successful regardless the outcome + // which means that no failure notification is sent to issue's subscribers + process.exit(0); });