Skip to content

seven-io/github-action-sms

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

Official seven.io SMS GitHub Action

Send an SMS from GitHub Actions.

Prerequisites

Usage

  1. Set up your credentials secrets in your repository settings by specifying SEVEN_API_KEY.

  2. Add the following to your workflow

- name: 'Send SMS'
  uses: seven-io/github-action-sms@master
  with:
    from: 'Tommy Tester'
    text: 'seven.io wishes you a nice day!'
    to: '+4901234567890,Tina Testing'
  env:
    SEVEN_API_KEY: ${{ secrets.SEVEN_API_KEY }}

Inputs

apiKey Required

An API Key from seven.io. Alternatively use environment variable SEVEN_API_KEY.

to Required

Phone number(s) or contact(s) separated by comma to send the SMS to

text Required

The actual message content you want to send to the recipient(s)

delay

Delayed dispatch at given time: Unix-Timestamp or format yyyy-mm-dd hh:ii

foreign_id

Foreign ID returned in callbacks. Allowed characters: a-z, A-Z, 0-9, .-_@

from

Sender ID; max 16 numeric or 11 alphanumeric characters

label

Custom label. Allowed characters: a-z, A-Z, 0-9, .-_@

ttl

Time To Live in minutes. Default is 2880

udh

User Data Header: If set and text contains Hexcode the sms gets sent as 8-bit binary

Outputs

response

Returns a return code from the API.

License

MIT