Skip to content

Latest commit

History

History
67 lines (42 loc) 路 1.75 KB

README.md

File metadata and controls

67 lines (42 loc) 路 1.75 KB

Exotel SMS GitHub Action

Send an SMS through GitHub Actions using Exotel

Prerequisites

Usage

  1. Set up your credentials as secrets in your repository settings using EXOTEL_ACCOUNT_SID, EXOTEL_API_KEY, EXOTEL_API_TOKEN

  2. Add the following to your workflow

- name: 'Sending SMS Notification'
  uses: sagarchoudhary96/exosms-actions@v1
  with:
    fromNumber: 'from_number_here'
    toNumber: 'to_number_here'
    message: 'message_body_here'
  env:
    EXOTEL_ACCOUNT_SID: ${{ secrets.EXOTEL_ACCOUNT_SID }}
    EXOTEL_API_KEY: ${{ secrets.EXOTEL_API_KEY }}
    EXOTEL_API_TOKEN: ${{ secrets.EXOTEL_API_TOKEN }}

Inputs

fromNumber

Required Exophone in your Exotel account to send the SMS from

toNumber

Required Phone number to send the SMS to

message

Required The message you want to send

EXOTEL_ACCOUNT_SID

An Exotel Account SID. Can alternatively be stored in environment

EXOTEL_API_KEY

An Exotel API Key. Can alternatively be stored in environment

EXOTEL_API_TOKEN

An Exotel API Token. Can alternatively be stored in environment

Outputs

smsMessageSid

The SID of the sms message resource associated with the SMS sent.

License

MIT license

Don't forget to 馃専 Star 馃専 the repo if you like this GitHub Action !
Your feedback is appreciated