Better Notifications for GitHub Actions
Getting alerts when GitHub Actions Workflows succeed or fail can boost developer productivity and reduce bugs.
For example, if you alert the team when a new build is deployed, everyone will be aware that fresh code is running in production. This is motivating for the team, and also warns them to watch out for new bugs or performance regressions.
Or perhaps you want to know when the integration tests fail, so you can fix them, or make sure the responsible person is aware.
GitHub offers some support for Actions notifications. However, GitDailies provides more powerful options, and it’s easy to use. Keep reading to learn more!
Enhance Your GitHub Actions Alerts
GitDailies makes it easy to build custom GitHub notifications, including alerts for GitHub Actions! You can set different alert rules for each GitHub Actions Workflow, and make the alert conditional on which user triggered the Workflow.
GitDailies can deliver notifications by Email, Slack, and Telegram (both shared channels and private direct messages are supported).
This lets you create alerts like:
- Sending a message to the team Slack channel when a new deployment of the “frontend” repo is made.
- Sending an email to the Team Lead if a junior developer breaks the build (they might need help fixing it)
- Receiving a Telegram Direct Message if you break the build (not that you ever break the build 😉)
- And much more…
Creating the Alert
To create a GitHub Actions alert in GitDailies, select the “Alerts” tab, then “New Alert”.
The Alert builder will then lead you through the next steps…
Choose the Trigger
There are many options for triggering GitHub Alerts in GitDailies (e.g. a Pull Request open / close / merge / label / etc, creation of a branch matching a regex, specific repo files being edited, etc).
In this case, we can choose “Workflow succeeded” or “Workflow failed”.
Choose the Repository
Repositories have different GitHub Actions configured, so choose the repository to monitor here. (The dropdown contains all the repositories you are following with GitDailies).
Choose the Workflow
This dropdown contains all the GitHub Actions Workflows that are configured for your chosen repository. In this example, we are choosing the “Run tests” Workflow for the “frontend” repository.
One of the great things about the GitDailies alert builder is that you can use different notification settings for each GitHub Actions Workflow.
Add Conditions (optional)
By default, this alert will trigger whenever the “Run tests” Workflow fails. However, the GitDailies alert builder enables you to add custom conditions to alerts, giving you full control over when they trigger. For Workflow alerts, you can make the alert depend on the GitHub username of the person (or bot) that triggered the Workflow.
(Need another condition? Let us know and we’ll add it! 😄).
We’ll set this alert to trigger only when I break the tests 😅
Configure Email Notifications for Alert
Enter the email address where you’d like to receive notifications.
Configure Slack Notifications for Alert
You can send notifications to a shared Slack channel, or (for personal Alerts) receive them as a Slack DM.
To enable this option, you need the (free) GitDailies bot for Slack. If you don’t have the GitDailies Slack bot installed, an installation link will appear.
Configure Telegram Notifications for Alert
Like Slack, you can send notifications to a shared Telegram group, or as a Telegram Direct Message.
To install the GitDailies bot for Telegram, invite
@GitDailiesBot to the chat and follow the
Standard GitHub Notifications?
Using standard GitHub notifications for Actions is possible, but they are quite limited.
You can’t set up extra conditions for when to trigger the alert, and you don’t have the choice of Email, Slack channel, Slack DM, Telegram chat, Telegram DM. Crucially, you can’t choose different settings for each Workflow. GitDailies solves those problems.
Leveraging the power of alerts for GitHub Actions can significantly boost your software team’s productivity and reduce bugs.
GitDailies simplifies the process of creating and managing these alerts, offering important features that standard GitHub notifications lack. With GitDailies, you can customize when an alert triggers, choose from various notification channels (Email, Slack, and Telegram), and even use different settings for each Workflow.
Use GitDailies to enhance your team’s performance and keep your projects on track!