diff --git a/.github/workflows/test-integration-vizro-ai.yml b/.github/workflows/test-integration-vizro-ai.yml index 6de08420d..ee797b8ef 100644 --- a/.github/workflows/test-integration-vizro-ai.yml +++ b/.github/workflows/test-integration-vizro-ai.yml @@ -94,3 +94,25 @@ jobs: cd ../vizro-ai hatch run ${{ matrix.hatch-env }}:pip install ../vizro-core/dist/vizro*.tar.gz hatch run ${{ matrix.hatch-env }}:test-integration + + - name: Send custom JSON data to Slack + id: slack + uses: slackapi/slack-github-action@v1.26.0 + if: failure() + with: + payload: | + { + "text": "Vizro-ai ${{ matrix.hatch-env }} integration tests build result: ${{ job.status }}\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}", + "blocks": [ + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Vizro-ai ${{ matrix.hatch-env }} integration tests build result: ${{ job.status }}\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + } + } + ] + } + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK