From e47e9a9484fed4e00987ecf76b3d7f3fed03d3ae Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Fri, 20 Aug 2021 19:36:55 -0400 Subject: [PATCH] Only slack the channel on push to main --- .github/workflows/cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index bad6b4b37..8d19c7a72 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -163,7 +163,7 @@ jobs: slack-workflow-status: - if: always() + if: github.ref == 'refs/heads/main' && github.event_name == 'push' name: Post Workflow Status To Slack needs: - cd