e47e9a9484fed4e00987ecf76b3d7f3fed03d3ae

Author
Ayman Bagabas <ayman.bagabas@gmail.com>
Committer
Ayman Bagabas <ayman.bagabas@gmail.com>
Date

Message

Only slack the channel on push to main

Diff

 1diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml
 2index bad6b4b37e993710f299224bc2b0d6af514ce895..8d19c7a72735e8669e36496f62fca57d8c59f30c 100644
 3--- a/.github/workflows/cd.yml
 4+++ b/.github/workflows/cd.yml
 5@@ -163,7 +163,7 @@ jobs:
 6 
 7 
 8   slack-workflow-status:
 9-    if: always()
10+    if: github.ref == 'refs/heads/main' && github.event_name == 'push'
11     name: Post Workflow Status To Slack
12     needs:
13       - cd