Send an SMS from GitHub Actions.
- An account at seven.io. Sign up for free!
- Account balance and an API Key.
-
Set up your credentials secrets in your repository settings by specifying
SEVEN_API_KEY
. -
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 }}
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
response
Returns a return code from the API.