Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
phone-incoming

GitHub Action

Twilio Voice Call

v2.0.0

Twilio Voice Call

phone-incoming

Twilio Voice Call

This GitHub action sends voice call with the defined text

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Twilio Voice Call

uses: fabasoad/twilio-voice-call-action@v2.0.0

Learn more about this action in fabasoad/twilio-voice-call-action

Choose a version

Twilio voice call action

Stand With Ukraine Releases unit-tests functional-tests security pre-commit Maintainability Test Coverage Known Vulnerabilities

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.