From ebadc00cfb6125b9012da98c4d0c4ecc8d4e9fbe Mon Sep 17 00:00:00 2001 From: Ariel Caplan Date: Sun, 24 Nov 2024 16:21:41 +0200 Subject: [PATCH] Don't notify Slack if main fails due to workflow cancellation --- .github/workflows/shopify-cli.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/shopify-cli.yml b/.github/workflows/shopify-cli.yml index 61a4540d4e..0d6cafe99b 100644 --- a/.github/workflows/shopify-cli.yml +++ b/.github/workflows/shopify-cli.yml @@ -90,7 +90,7 @@ jobs: run: pnpm nx run features:test - name: Send Slack notification on failure uses: slackapi/slack-github-action@007b2c3c751a190b6f0f040e47ed024deaa72844 # pin@v1.23.0 - if: failure() + if: ${{ failure() && !cancelled() }} with: payload: | {