Skip to content

GitHub action that sends Twilio voice call.

License

Notifications You must be signed in to change notification settings

fabasoad/twilio-voice-call-action

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

Repository files navigation

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

Name Required Description Default Possible values
twilio_account_sid Yes Twilio account SID <String>
twilio_auth_token Yes Twilio auth token <String>
text Yes Text that will be send by voice call. <String>
from Yes Phone number in your Twilio account to send the voice call from <String>
to Yes Phone number to send the voice call to <String>
voice No Call voice alice man, woman, alice
twilio_log_level No Log level of the output from twilio call request debug debug, 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.