ci: try to fix slack notification when build is failed

- try to fix https://github.com/kestra-io/kestra/issues/11905
This commit is contained in:
Roman Acevedo
2025-10-09 11:47:02 +02:00
parent 0df2b74272
commit d1a47a6874

View File

@@ -80,7 +80,7 @@ jobs:
# Slack
- name: Slack - Notification
if: ${{ failure() && env.SLACK_WEBHOOK_URL != 0 && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop') }}
if: ${{ failure() && github.event.pull_request.head.repo.full_name == github.repository && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop') }}
uses: kestra-io/actions/composite/slack-status@main
with:
webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}