.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
  Ayman Bagabas created
.github/workflows/cd.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -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