ci: improve slack notif to forward error (#12187)

* ci: improve slack notif to forward error

* more test

* more test

* cleanup
This commit is contained in:
Roman Acevedo
2025-10-20 18:54:23 +02:00
committed by GitHub
parent d92fd0040a
commit 0b08d614c1

View File

@@ -80,8 +80,10 @@ jobs:
event-type: "oss-updated"
# Slack
- name: Slack - Notification
- run: echo "mark job as failure to forward error to Slack action" && exit 1
if: ${{ contains(needs.*.result, 'failure') }}
- name: Slack - Notification
if: ${{ always() && contains(needs.*.result, 'failure') }}
uses: kestra-io/actions/composite/slack-status@main
with:
webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}