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 🚀
Usage
- Create account in twilio here.
- From your twilio dashboard fetch Account Sid and Auth Token.
- To encrypt them, create new secrets in your repository named account_sid, auth_token, to_whatsapp_no and give it's value.
- Create a .github/workflows/whatsapp-push-notify-action.yml.
- 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 }}
Whatsapp Push Notifier 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
Top comments (2)
That's great work!
Thank you Naman!!