The whatsapp bot built using Twilio APIs which sends a Whatsapp message when code is pushed to a repository.
- 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
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: whatsapp-notify
id: whatsapp-notify
env:
account_sid: ${{ secrets.account_sid }}
auth_token: ${{ secrets.auth_token }}
to_whatsapp_no: ${{ secrets.to_whatsapp_no }}
- name : Run
run: |
echo 'Start!'
This project is GNU GPLv3 licensed.