Alert to slack if release action fails (#1117)

* Trigger mizu ent stg deployment on release
This commit is contained in:
Igor Gov 2022-05-29 15:16:45 +03:00 committed by GitHub
parent 7edb0b153b
commit 8f64fdaa61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -290,3 +290,15 @@ jobs:
tag: ${{ steps.versioning.outputs.version }} tag: ${{ steps.versioning.outputs.version }}
prerelease: ${{ github.ref != 'refs/heads/main' }} prerelease: ${{ github.ref != 'refs/heads/main' }}
bodyFile: 'cli/bin/README.md' 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 }}