mirror of
https://github.com/kestra-io/kestra.git
synced 2025-12-19 18:05:41 -05:00
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:
4
.github/workflows/main-build.yml
vendored
4
.github/workflows/main-build.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user