Send an SMS through GitHub Actions using Exotel
- An Exotel Account. Sign up here
- An Exotel API Key and Token
-
Set up your credentials as secrets in your repository settings using
EXOTEL_ACCOUNT_SID
,EXOTEL_API_KEY
,EXOTEL_API_TOKEN
-
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 }}
Required Exophone in your Exotel account to send the SMS from
Required Phone number to send the SMS to
Required The message you want to send
An Exotel Account SID. Can alternatively be stored in environment
An Exotel API Key. Can alternatively be stored in environment
An Exotel API Token. Can alternatively be stored in environment
The SID of the sms message resource associated with the SMS sent.
Don't forget to ๐ Star ๐ the repo if you like this GitHub Action !
Your feedback is appreciated