Skip to content

AzliRynz/whatsapp-notification-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WhatsApp Notification Action

A GitHub Action to send notifications to a WhatsApp group when a new release is published in your repository. This action fetches the release title and description, and outputs them alongside a WhatsApp group invite link.

Usage

To use this action in your workflow, add the following to your workflow YAML file:

name: Notify WhatsApp on Release

on:
  release:
    types: [published]

jobs:
  notify-whatsapp:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout repository
        uses: actions/checkout@v2

      - name: Send WhatsApp Notification
        uses: KnosTx/whatsapp-notification-action@v1
        with:
          whatsapp_invite_link: "https://chat.whatsapp.com/<invite_code>"

Example

This action is triggered when a new release is published. It fetches the release title and description and displays them in the workflow output along with the WhatsApp group invite link.

name: Notify WhatsApp on Release

on:
  release:
    types: [published]

jobs:
  notify-whatsapp:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout repository
        uses: actions/checkout@v2

      - name: Send WhatsApp Notification
        uses: KnosTx/whatsapp-notification-action@v1
        with:
          whatsapp_invite_link: "https://chat.whatsapp.com/ABC123XYZ456"

In this example, when a new release is published, the workflow will trigger and print out:

The release title (or tag name if title is missing)

The release description (or a default message if none is provided)

The WhatsApp group invite link provided in the whatsapp_invite_link input

Outputs

Currently, this action does not output any additional data beyond console logs.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors