From a39809df3c3e1317319bb7cc47c7f405a1e7965a Mon Sep 17 00:00:00 2001 From: Jeremy Kubica <104161096+jeremykubica@users.noreply.github.com> Date: Wed, 7 Oct 2026 09:20:49 -0400 Subject: [PATCH] Send one slack alert per failure --- .github/workflows/smoke-test.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/smoke-test.yml b/.github/workflows/smoke-test.yml index c9ee305..f587234 100644 --- a/.github/workflows/smoke-test.yml +++ b/.github/workflows/smoke-test.yml @@ -42,8 +42,12 @@ jobs: run: | git config --global init.defaultBranch main python -m pytest tests -o log_cli=true -vv --python_version ${{ matrix.python-version }} + notify: + needs: build + runs-on: ubuntu-latest + if: ${{ always() && needs.build.result == 'failure' && github.event_name != 'workflow_dispatch' }} + steps: - name: Send status to Slack app - if: ${{ failure() && github.event_name != 'workflow_dispatch' }} id: slack uses: slackapi/slack-github-action@v4 with: @@ -63,7 +67,7 @@ jobs: "type": "section", "text": { "type": "mrkdwn", - "text": "GitHub Action build result: *${{ job.status }}* :${{ job.status }}:" + "text": "GitHub Action build result: *${{ needs.build.result }}* :x:" } }, {