Slack Notifications
Every deployment sends a rich Block Kit message to the team Slack channel.
What's Included
| Field | Value |
|---|---|
| Project | Sema Link Customer Web App |
| Environment | Staging / Test / Production |
| Deployed by | GitHub username of the actor |
| Commit SHA | Full SHA of the deployed commit |
| Commit Message | Subject line of the last commit |
| Action button (success) | Link to the live URL |
| Action button (failure) | Link to the workflow run logs |
Success messages are green, failure messages are red.
Setup
The integration uses slackapi/slack-github-action@v1.26.0.
- Create a Slack App at api.slack.com/apps
- Enable Incoming Webhooks and generate a webhook URL for the target channel
- Save it as
SLACK_WEBHOOK_URLin each GitHub Environment
Routing to Different Channels
Currently all three environments (staging, test, prod) share the same webhook URL and notify the same channel.
To route to separate channels:
- Create a separate Incoming Webhook per channel in your Slack App
- Update the
SLACK_WEBHOOK_URLsecret in each GitHub Environment with the channel-specific URL