Add Slack notifications to the github actions workflow
@@ -73,6 +73,15 @@ jobs:
# Name of the user who is running the CI (on GitHub Actions this is 'runner')
ST2_CI_USER: 'runner'
steps:
+ - name: CI Run Start Slack Notification
+ id: stackstorm_community_slack
+ env:
+ SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
+ uses: voxmedia/github-action-slack-notify-build@v1
+ with:
+ channel: ghci-integration
+ status: STARTING
+ color: warning
- name: Custom Environment Setup
# built-in GitHub Actions environment variables
# https://docs.github.com/en/free-pro-team@latest/actions/reference/environment-variables
@@ -173,6 +182,26 @@ jobs:
if: "${{ success() && ((env.TASK == 'ci-unit') || (env.TASK == 'ci-integration')) && (env.ENABLE_COVERAGE == 'yes') }}"
run: |
./scripts/travis/submit-codecov-coverage.sh
+ - name: CI Run Success Slack Notification
+ if: success()
+ env:
+ SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
+ uses: voxmedia/github-action-slack-notify-build@v1
+ with:
+ channel: ghci-integration
+ message_id: ${{ steps.stackstorm_community_slack.outputs.message_id }}
+ status: SUCCESS
+ color: good
+ - name: CI Run Success Slack Notification
+ if: failure()
+ env:
+ SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
+ uses: voxmedia/github-action-slack-notify-build@v1
+ with:
+ channel: ghci-integration
+ message_id: ${{ steps.stackstorm_community_slack.outputs.message_id }}
+ status: FAILED
+ color: danger
# HELPER FOR FUTURE DEVELOPERS:
# If your GitHub Actions job is failing and you need to debug it, by default there is
