From a64b28dcb8a114ea877c7a7f3a4bed956e88c9f5 Mon Sep 17 00:00:00 2001 From: leahwicz <60146280+leahwicz@users.noreply.github.com> Date: Tue, 16 Nov 2021 14:39:06 -0500 Subject: [PATCH] Slack message for failed nightly runs (#41) --- .github/workflows/integration.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index d864ef251..32df2d3ee 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -216,3 +216,19 @@ jobs: "You do not have permissions to run integration tests, @dbt-labs/core "\ "needs to label this PR with `ok to test` in order to run integration tests!" check_for_duplicate_msg: true + + slack-results: + runs-on: ubuntu-latest + needs: test + if: always() + + steps: + - name: Posting scheduled run failures + uses: ravsamhq/notify-slack-action@v1 + if: ${{ github.event_name == 'schedule' }} + with: + notification_title: 'Redshift nightly integration test failed' + status: ${{ job.status }} + notify_when: 'failure' + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_DEV_CORE_ALERTS }}