From 89443ecb0379ad8af54e10e4f54ded7ef7463288 Mon Sep 17 00:00:00 2001 From: Timothy MacDonald Date: Tue, 19 Dec 2023 14:41:16 -0600 Subject: [PATCH] chore: add slack notification for test failure (#133) Signed-off-by: Timothy MacDonald --- .github/workflows/python-test.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index aa94900..6d5b5a2 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -53,3 +53,14 @@ jobs: LW_API_KEY: ${{ secrets.LW_API_KEY }} LW_API_SECRET: ${{ secrets.LW_API_SECRET }} LW_BASE_DOMAIN: ${{ secrets.LW_BASE_DOMAIN }} + - name: Report Status + if: always() + uses: ravsamhq/notify-slack-action@v2 + with: + status: ${{ job.status }} + notify_when: "failure" + notification_title: "{workflow} has {status_message}" + message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>" + footer: "Linked Repo <{repo_url}|{repo}> | <{workflow_url}|View Workflow>" + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file