Home

Awesome

Twilio voice call action

Stand With Ukraine Releases unit-tests functional-tests security linting Maintainability Test Coverage

This action sends Twilio voice call.

Prerequisites

Sign up to Twilio official web page. Then register a new number to use it as from parameter. If you use free trial account you have to add verified phone number to use it as to parameter. Account SID and Auth token you can find on a Dashboard page.

Inputs

NameRequiredDescriptionDefaultPossible values
twilio_account_sidYesTwilio account SID<String>
twilio_auth_tokenYesTwilio auth token<String>
textYesText that will be send by voice call.<String>
fromYesPhone number in your Twilio account to send the voice call from<String>
toYesPhone number to send the voice call to<String>
voiceNoCall voicealiceman, woman, alice
twilio_log_levelNoLog level of the output from twilio call requestdebugdebug, info, warn, error

Example usage

Workflow configuration

name: Twilio

on: push

jobs:
  twilio-voice-call:
    name: Twilio voice call
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: fabasoad/twilio-voice-call-action@v1
        if: success()
        with:
          text: 'GitHub actions build number ${{ github.run_number }} passed successfully.'
          from: '+1(123)4567890'
          to: '+1(123)4567809'
          twilio_account_sid: ${{ secrets.TWILIO_ACCOUNT_SID }}
          twilio_auth_token: ${{ secrets.TWILIO_AUTH_TOKEN }}

Result

Download example.mp3 file to listen.