Skip to content

Commit

Permalink
Added the slack notifications (#14)
Browse files Browse the repository at this point in the history
* Added the slack notifications

* Update release.yml

* Update release.yml

* Removed the success notification from homebrew added in CLI
  • Loading branch information
ravali-rimmalapudi authored Oct 12, 2021
1 parent e186048 commit be230eb
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,20 @@ jobs:
tag: ${{github.event.inputs.version}}
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: ${{github.event.inputs.pre-release}}
notify-complete-fail:
if: ${{ failure() || cancelled() }}
needs: [ release ]
name: Notify Release Failed
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.ALERT_SLACK_WEB_HOOK }}
SLACK_COLOR: "#ff3333"
SLACK_USERNAME: CLI Release Bot
SLACK_ICON_EMOJI: ":ship:"
SLACK_TITLE: "Twilio Cli"
SLACK_MESSAGE: 'Homebrew Release Failed'
MSG_MINIMAL: actions url

0 comments on commit be230eb

Please sign in to comment.