DEV Community

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

Posted on โ€ข Edited on

5 1

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

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (2)

Collapse
 
namangirdhar16 profile image
Naman Girdhar โ€ข

That's great work!

Collapse
 
gsudarshan profile image
G Sudarshan โ€ข

Thank you Naman!!

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

๐Ÿ‘‹ Kindness is contagious

Please leave a โค๏ธ or a friendly comment on this post if you found it helpful!

Okay