|
12 | 12 | description: 'HomeBrew prerelease'
|
13 | 13 | default: 'false'
|
14 | 14 | jobs:
|
| 15 | + notify-start: |
| 16 | + name: Notify Release Started |
| 17 | + runs-on: ubuntu-latest |
| 18 | + steps: |
| 19 | + - uses: actions/checkout@v2 |
| 20 | + - name: Slack Notification |
| 21 | + uses: rtCamp/action-slack-notify@v2 |
| 22 | + env: |
| 23 | + SLACK_WEBHOOK: ${{ secrets.SLACK_WEB_HOOK }} |
| 24 | + SLACK_COLOR: "#36a64f" |
| 25 | + SLACK_USERNAME: CLI Release Bot |
| 26 | + SLACK_ICON_EMOJI: ":ship:" |
| 27 | + SLACK_TITLE: "Twilio Cli" |
| 28 | + SLACK_MESSAGE: 'Release Started :rocket:' |
| 29 | + MSG_MINIMAL: actions url |
15 | 30 | test:
|
16 | 31 | runs-on: ubuntu-latest
|
17 | 32 | strategy:
|
@@ -104,3 +119,20 @@ jobs:
|
104 | 119 | BRANCH_NAME: ${{github.event.inputs.cli-branch}}
|
105 | 120 | REPO_NAME: twilio/twilio-cli
|
106 | 121 | 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}}" }'
|
| 122 | + notify-complete-fail: |
| 123 | + if: ${{ failure() || cancelled() }} |
| 124 | + needs: [ triggerCliWorkflow ] |
| 125 | + name: Notify Release Failed |
| 126 | + runs-on: ubuntu-latest |
| 127 | + steps: |
| 128 | + - uses: actions/checkout@v2 |
| 129 | + - name: Slack Notification |
| 130 | + uses: rtCamp/action-slack-notify@v2 |
| 131 | + env: |
| 132 | + SLACK_WEBHOOK: ${{ secrets.ALERT_SLACK_WEB_HOOK }} |
| 133 | + SLACK_COLOR: "#ff3333" |
| 134 | + SLACK_USERNAME: CLI Release Bot |
| 135 | + SLACK_ICON_EMOJI: ":ship:" |
| 136 | + SLACK_TITLE: "Twilio Cli-core" |
| 137 | + SLACK_MESSAGE: 'Release workflow Failed' |
| 138 | + MSG_MINIMAL: actions url |
0 commit comments