Skip to content

Commit aedbb1b

Browse files
committed
Add Slack notify action on push
As per https://github.com/rtCamp/action-slack-notify
1 parent dda894b commit aedbb1b

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,9 @@ jobs:
9090
curl -f -X POST https://ask.defang.io/trigger-rebuild?token=${{ secrets.CHATBOT_TOKEN }}
9191
9292
- name: Notify Slack of Action Failures
93-
uses: ravsamhq/[email protected]
94-
if: ${{ always() && github.ref_name == 'main' }}
95-
with:
96-
status: ${{ job.status }}
97-
notify_when: "failure"
98-
notification_title: "{workflow} is failing"
93+
if: ${{ failure() && github.ref_name == 'main' }}
94+
uses: rtCamp/action-slack-notify@v2
9995
env:
100-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_NOTIFIER_WEBHOOK_URL }}
96+
SLACK_TITLE: Defang Docs deploy workflow failed
97+
MSG_MINIMAL: actions url
98+
SLACK_WEBHOOK: ${{ secrets.SLACK_NOTIFIER_WEBHOOK_URL }}

0 commit comments

Comments
 (0)