From 8f64fdaa614928b7ddac640d6b6cfd860bc6cbbf Mon Sep 17 00:00:00 2001 From: Igor Gov Date: Sun, 29 May 2022 15:16:45 +0300 Subject: [PATCH] Alert to slack if release action fails (#1117) * Trigger mizu ent stg deployment on release --- .github/workflows/release.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3abb19fa4..9abe066d5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -290,3 +290,15 @@ jobs: tag: ${{ steps.versioning.outputs.version }} prerelease: ${{ github.ref != 'refs/heads/main' }} bodyFile: 'cli/bin/README.md' + + - name: Slack notification on failure + uses: ravsamhq/notify-slack-action@v1 + if: always() + with: + status: ${{ job.status }} + notification_title: 'Mizu enterprise {workflow} has {status_message}' + message_format: '{emoji} *{workflow}* {status_message} during <{run_url}|run>, after commit <{commit_url}|{commit_sha}> by ${{ github.event.head_commit.author.name }} <${{ github.event.head_commit.author.email }}> ```${{ github.event.head_commit.message }}```' + footer: 'Linked Repo <{repo_url}|{repo}>' + notify_when: 'failure' + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}