GithubHelp home page GithubHelp logo

isabella232 / actions-call Goto Github PK

View Code? Open in Web Editor NEW

This project forked from plivo/actions-call

0.0 0.0 0.0 10.74 MB

Plivo GitHub Actions to make a phone call

License: MIT License

TypeScript 100.00%

actions-call's Introduction

Plivo Call - GitHub Actions

This action can be applied to your workflow and will enable you to make a call in any scenario you wish.

Prerequisites

Usage

  1. Set up your credentials as secrets in your repository settings using PLIVO_AUTH_ID, PLIVO_AUTH_TOKEN, FROM_NUMBER,TO_NUMBER

  2. 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 }}

Inputs

fromPhoneNumber

Required Phone number in your Plivo account which be used as caller-id, which is stored as secret and can also be hardcoded.

toPhoneNumber

Required The phone number to which call must be made is stored as a secret and can also be hardcoded.

message

Required The text you want to be spoken on the other end.

language

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.

voice

Required The tone to be used for reading out the text. Allowed values: "WOMAN", "MAN"

PLIVO_AUTH_ID

A Plivo Auth_ID. To be stored in secret or as an environment variable.

PLIVO_AUTH_TOKEN

A Plivo Auth_Token. To be stored in secret or as an environment variable.

Outputs

Plivo returns a JSON response acknowledging the message.

Sample Output

CreateCallResponse {
  apiId: 'ab4e9185-c539-11eb-b0d0-0242ac110002',
  message: 'call fired',
  requestUuid: 'b4afb8bc-7a3b-4401-a460-41e98b73dc2a'
}

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

actions-call's People

Contributors

huzaif-plivo avatar nixonsam avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.