Skip to content

Twilio SMS

Actions
Send an SMS from GitHub Actions using Twilio Programmable SMS
2.0.0
Latest
Verified creator
Star (160)

Tags

 (2)

Verified

GitHub has manually verified the creator of the action as an official partner organization. For more info see About badges in GitHub Marketplace.

Twilio SMS GitHub Action

Send an SMS from GitHub Actions.

Prerequisites

Usage

  1. Set up your credentials as secrets in your repository settings using TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN, TO_PHONE_NUMBER, FROM_PHONE_NUMBER

  2. Add the following to your workflow

name: Twilio Send
on:
  workflow_dispatch: # allows you to manually trigger the workflow
  schedule: # runs on a cron, nightly
    - cron: 0 0 * * * 
env:
    TWILIO_ACCOUNT_SID: ${{ secrets.TWILIO_ACCOUNT_SID }}
    TWILIO_AUTH_TOKEN: ${{ secrets.TWILIO_AUTH_TOKEN }}
    TWILIO_API_SECRET: ${{ secrets.TWILIO_API_SECRET }}
permissions:
  contents: read
jobs:
  send:
    runs-on: ubuntu-latest
    steps:
      - name: 'Sending SMS Notification'
        uses: twilio-labs/actions-sms@v1
        with:
          FROM_PHONE_NUMBER: ${{ secrets.FROM_PHONE_NUMBER }} 
          TO_PHONE_NUMBER: ${{ secrets.TO_PHONE_NUMBER }} 
          message: 'Hello from Twilio'

Inputs

FROM_PHONE_NUMBER

Required Phone number in your Twilio account to send the SMS from

TO_PHONE_NUMBER

Required Phone number to send the SMS to

message

Required The message you want to send

TWILIO_ACCOUNT_SID

A Twilio Account SID. Can alternatively be stored in environment

TWILIO_AUTH_TOKEN

A Twilio Auth Token. Can alternatively be stored in environment

Outputs

messageSid

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

Contributing

Third Party Licenses

This GitHub Action uses a couple of Node.js modules to work.

License and other copyright information for each module are included in the release branch of each action version under node_modules/{module}.

More information for each package can be found at https://www.npmjs.com/package/{package}

License

MIT license

Twilio SMS is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Send an SMS from GitHub Actions using Twilio Programmable SMS
2.0.0
Latest

Verified

GitHub has manually verified the creator of the action as an official partner organization. For more info see About badges in GitHub Marketplace.

Tags

 (2)

Twilio SMS is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.