Skip to content

Commit

Permalink
Update build
Browse files Browse the repository at this point in the history
  • Loading branch information
davidstellini committed Nov 2, 2022
1 parent 9de8b80 commit 6e38717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://dash.cloudflare.com?to=/${accountId}/pages/view/${deployment.project_name}/${deployment.id}|build logs>`).then(() => {
console.log(`Slack message for ${latestStage.name} failed pipeline sent!`);
Expand Down

0 comments on commit 6e38717

Please sign in to comment.