Only slack the channel on push to main

Ayman Bagabas created

Change summary

.github/workflows/cd.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

.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