Skip to content

Commit

Permalink
feat: Added the github actions to send the slack notifications (twili…
Browse files Browse the repository at this point in the history
…o#164)

* feat: Added the github actions to send the slack notifications

* Update release.yml
  • Loading branch information
ravali-rimmalapudi committed Oct 12, 2021
1 parent ac25774 commit 06e2cb1
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,21 @@ on:
description: 'HomeBrew prerelease'
default: 'false'
jobs:
notify-start:
name: Notify Release Started
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEB_HOOK }}
SLACK_COLOR: "#36a64f"
SLACK_USERNAME: CLI Release Bot
SLACK_ICON_EMOJI: ":ship:"
SLACK_TITLE: "Twilio Cli"
SLACK_MESSAGE: 'Release Started :rocket:'
MSG_MINIMAL: actions url
test:
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -104,3 +119,20 @@ jobs:
BRANCH_NAME: ${{github.event.inputs.cli-branch}}
REPO_NAME: twilio/twilio-cli
INPUTS: '{ "change-log": ${{ toJSON(needs.update-api-specs.outputs.change-log) }}, "version-type": "${{needs.update-api-specs.outputs.version-type}}", "homebrew-branch": "${{github.event.inputs.homebrew-branch}}", "homebrew-prerelease": "${{github.event.inputs.homebrew-prerelease}}" }'
notify-complete-fail:
if: ${{ failure() || cancelled() }}
needs: [ triggerCliWorkflow ]
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-core"
SLACK_MESSAGE: 'Release workflow Failed'
MSG_MINIMAL: actions url

0 comments on commit 06e2cb1

Please sign in to comment.