From 6e3871741378c9a4a21b09a827bb390959e4629c Mon Sep 17 00:00:00 2001 From: davidstellini Date: Wed, 2 Nov 2022 09:34:04 +0200 Subject: [PATCH] Update build --- src/action.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/action.ts b/src/action.ts index a77798c..7573a95 100644 --- a/src/action.ts +++ b/src/action.ts @@ -45,7 +45,7 @@ export default async function run() { } } - if (latestStage.status === 'failed') { + if (latestStage.status === 'failed' || latestStage.status === 'failure') { waiting = false; slack.send(`:x: CloudFlare Pages \`${latestStage.name}\` pipeline for project *${project}* \`FAILED\`!\nEnvironment: *${deployment.environment}*\nCommit: ${context.payload.head_commit.url}\nActor: *${context.actor}*\nDeployment ID: *${deployment.id}*\nCheckout `).then(() => { console.log(`Slack message for ${latestStage.name} failed pipeline sent!`);