This action can be applied to your workflow and will enable you to make a call in any scenario you wish.
- A Plivo Account. Sign up for free
- A Plivo Auth_ID and Auth_Token
-
Set up your credentials as secrets in your repository settings using
PLIVO_AUTH_ID
,PLIVO_AUTH_TOKEN
,FROM_NUMBER
,TO_NUMBER
-
Add the following to your workflow
- name: 'Make call'
uses: plivo/actions-call@v1
with:
fromPhoneNumber: ${{ secrets.FROM_NUMBER }}
toPhoneNumber: ${{ secrets.TO_NUMBER }}
message: 'There has been new release to ${{ github.repository }}'
language: 'en-US'
voice: 'WOMAN'
env:
PLIVO_AUTH_ID: ${{ secrets.PLIVO_AUTH_ID }}
PLIVO_AUTH_TOKEN: ${{ secrets.PLIVO_AUTH_TOKEN }}
Required Phone number in your Plivo account which be used as caller-id, which is stored as secret and can also be hardcoded.
Required The phone number to which call must be made is stored as a secret and can also be hardcoded.
Required The text you want to be spoken on the other end.
Required Language used to read out the text, for example, if we want the audio to be delivered in English, the value would be "en-US". Supported voices and languages can be found here.
Required The tone to be used for reading out the text. Allowed values: "WOMAN", "MAN"
A Plivo Auth_ID. To be stored in secret or as an environment variable.
A Plivo Auth_Token. To be stored in secret or as an environment variable.
Plivo returns a JSON response acknowledging the message.
CreateCallResponse {
apiId: 'ab4e9185-c539-11eb-b0d0-0242ac110002',
message: 'call fired',
requestUuid: 'b4afb8bc-7a3b-4401-a460-41e98b73dc2a'
}
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}