From 87b0b6bd0130b2631da1e9ca4e5d1cabb3fd0e28 Mon Sep 17 00:00:00 2001 From: Marwan Ahmed <155799754+marawan206@users.noreply.github.com> Date: Fri, 12 Jun 2026 14:47:20 +0300 Subject: [PATCH] Add Slack notification on CI failure --- .github/workflows/test-ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/test-ci.yml b/.github/workflows/test-ci.yml index adfc5dd32049..19d0cc3fe5d5 100644 --- a/.github/workflows/test-ci.yml +++ b/.github/workflows/test-ci.yml @@ -97,3 +97,16 @@ jobs: torch_version: ${{ matrix.torch_version }} google_credentials: ${{ secrets.GCS_SERVICE_ACCOUNT_JSON }} comfyui_flags: ${{ matrix.flags }} + + notify-failure: + needs: [test-stable, test-unix-nightly] + if: ${{ failure() && github.event_name == 'push' }} + runs-on: ubuntu-latest + steps: + - name: Notify Slack of CI failure + uses: slackapi/slack-github-action@v2.1.0 + with: + webhook: ${{ secrets.CI_ALERTS_SLACK_WEBHOOK }} + webhook-type: incoming-webhook + payload: | + text: ":rotating_siren: ComfyUI CI failed on `${{ github.ref_name }}`\n*Commit:* <${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>\n*Run:* <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|view logs>\n*Dashboard:* "