Skip to content
message-circle

GitHub Action

Whatsapp Actions for Github

v1.1 Latest version

Whatsapp Actions for Github

message-circle

Whatsapp Actions for Github

Send a rich-formatted message on the user's Whatsapp number whenever there is a change in repository

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Whatsapp Actions for Github

uses: kaviadigdarshan/[email protected]

Learn more about this action in kaviadigdarshan/whatsapp-actions

Choose a version

📮 Whatsapp Actions for Github 📮

Introduction

This is an action repository with an objective of notifying the user on Whatsapp regarding several changes in their github repositories. Messages sent to Whatsapp are rich-formatted, easy to read and comprehend and also contains supportive media to enhance the experience.

Unique Features

  1. Offers rich-formatted push messages with texts, emojis and all details regarding the event
  2. Automatically adds the Github Avatar of the user who triggers the event in the message
  3. Includes all relevant URLs for your quick review and launch them in Github app or website

Get Started

Create Twilio Account

  1. Create an account in twilio from here
  2. Take note of ACCOUNT SID and AUTH TOKEN from your twilio account. You can find it under your Twilio Account Dashboard

Configure your repository secrets

  1. Navigate to your repository secrets Settings > Secrets
  2. Add below secrets using button New repository secret
Name Value
ACCOUNT_SID ACCOUNT SID copied earlier
AUTH_TOKEN AUTH TOKEN copied earlier
TO_WHATSAPP_NUMBER Your Whatsapp Number

Subscribe to Twilio Whatsapp Sandbox

  1. Add a contact on your phone for Twilio number: +14155238886)

  2. From your Whatsapp number, send a message to the above twilio number in the below format:

    join "your-name"

    Example: join kavia-digdarshan

Prepare the action workflow

  1. In your repository page, navigate to Actions > New Workflow > set up a workflow yourself. It will open up a yaml file in code editor.
  2. Replace everything in this yaml file with below:
name: Whatsapp Notification

on: [push, pull_request, issues, fork, watch]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: whatsapp-notify
        uses: kaviadigdarshan/whatsapp-actions@main
        env:
          ACCOUNT_SID: ${{ secrets.ACCOUNT_SID }}
          AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}
          TO_WHATSAPP_NUMBER: ${{ secrets.TO_WHATSAPP_NUMBER }}

Screenshots

Pull Request Message

Message for a PR event

Support

Give us a 🌟 to support!

Copyright © 2020 Digdarshan Kavia