DEV Community

Derrick Sherrill for WayScript

Posted on

Receive Slack Messages/Emails when your Code Deploys


Being kept up to date about the progress of your repository is important and creating integrations can make your development cycle easier.

Today, let’s take a look at how we can trigger a slack notification and receive an email when your code is deployed.


Notification upon branch

If your branch, once merged is automatically deployed, then, the notification becomes easier to make. If that isn’t the case, you can use Python to create notification through Wayscript.

The first step for this tutorial is to choose the Trigger which is Github Trigger.

Adding Github Trigger

This trigger allows you to perform actions depending on the events on your repo.

Github Trigger configuration

We work with Push Events here, and then we choose the branch.

Slack Notification

Every time a push will occur, this activates everything below that trigger.

Add the Slack module.

Adding slack module

Then, let’s configure it. Connect your account and the desired channel you want to post the notification.

Slack module configuration

Email Notification

Wayscript provides the Send Email module to easily send yourself emails using Wayscript.

Send Email module

Let’s write the message and subject.

Email Message


Questions about this script or anything else? Join our discord. We're always around to help. If you want to work the full script template, just find it here.

Top comments (0)