ci: fix slack notif when main build failed

- fixes https://github.com/kestra-io/kestra/issues/11905
This commit is contained in:
Roman Acevedo
2025-10-20 17:36:04 +02:00
committed by GitHub
parent 004a85f701
commit d92fd0040a

View File

@@ -70,10 +70,10 @@ jobs:
needs: [backend-tests, frontend-tests, publish-develop-docker, publish-develop-maven]
if: "always() && github.repository == 'kestra-io/kestra'"
steps:
- run: echo "debug repo ${{github.repository}} ref ${{github.ref}} res ${{needs.publish-develop-maven.result}} jobStatus ${{job.status}} isNotFork ${{github.repository == 'kestra-io/kestra'}} isDevelop ${{github.ref == 'refs/heads/develop'}}"
- run: echo "end CI of failed or success"
- name: Trigger EE Workflow
uses: peter-evans/repository-dispatch@5fc4efd1a4797ddb68ffd0714a238564e4cc0e6f # v4
if: "!failure() && !cancelled() && github.ref == 'refs/heads/develop'"
if: "!contains(needs.*.result, 'failure') && github.ref == 'refs/heads/develop'"
with:
token: ${{ secrets.GH_PERSONAL_TOKEN }}
repository: kestra-io/kestra-ee
@@ -81,7 +81,8 @@ jobs:
# Slack
- name: Slack - Notification
if: "failure()"
if: ${{ contains(needs.*.result, 'failure') }}
uses: kestra-io/actions/composite/slack-status@main
with:
webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
channel: 'C09FF36GKE1'