DEV Community

Cover image for Github to Whatsapp Push Notifier using GitHub Actions
G Sudarshan
G Sudarshan

Posted on • Edited on

Github to Whatsapp Push Notifier using GitHub Actions

Github to Whatsapp Push Notifier

Link to GitHub repo: Github to Whatsapp Push Notifier

The whatsapp bot built using Twilio APIs which sends a Whatsapp message when code is pushed to a repository.

Whatsapp Push Notify Action 🚀

Version License: GNU GPLv3

Usage

  1. Create account in twilio here.
  2. From your twilio dashboard fetch Account Sid and Auth Token.
  3. To encrypt them, create new secrets in your repository named account_sid, auth_token, to_whatsapp_no and give it's value.
  4. Create a .github/workflows/whatsapp-push-notify-action.yml.
  5. Add the following properties to whatsapp-push-notify-action.yml file


name: When a push occurs in the master branch, a private message is sent on the Whatsapp.
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: install twilio
run: pip install twilio
- name: run code
run: python main.py
env:
account_sid: ${{ secrets.ACCOUNT_SID }}
auth_token: ${{ secrets.AUTH_TOKEN }}
to_whatsapp_no: ${{ secrets.TO_WHATSAPP_NO }}
from_whatsapp_no: ${{ secrets.FROM_WHATSAPP_NO }}

Enter fullscreen mode Exit fullscreen mode




Whatsapp Push Notifier Output

output

This project is MIT licensed.


Submission Category:

Maintainer Must-Haves, DIY Deployments, Phone Friendly, or Wacky Wildcards

Additional Resources / Info

I have used Twilio's Whatsapp APIs for this project

Link to GitHub repo: Github to Whatsapp Push Notifier

Top comments (2)

Collapse
 
namangirdhar16 profile image
Naman Girdhar

That's great work!

Collapse
 
gsudarshan profile image
G Sudarshan

Thank you Naman!!