{"id":26924,"date":"2021-05-03T13:46:53","date_gmt":"2021-05-03T11:46:53","guid":{"rendered":"https:\/\/www.sms77.io\/?post_type=docs&p=26924"},"modified":"2021-12-10T11:00:32","modified_gmt":"2021-12-10T10:00:32","slug":"github-actions","status":"publish","type":"docs","link":"https:\/\/www.seven.io\/en\/docs\/third-party-solutions\/github-actions\/","title":{"rendered":"GitHub Actions"},"content":{"rendered":"
GitHub Actions can be used to automate developer workflows on GitHub.<\/p>\n
This is our GitHub Actions documentation for sms77 SMS & Voice actions. Continue reading for setup options and more.<\/p>\n
Send SMS to one or more recipients when triggered in a workflow.<\/p>\n
SMS77_API_KEY<\/code> in your repository settings.<\/li>\n- Add the following to your workflow:<\/li>\n<\/ol>\n
- name<\/span>: '<\/span>Send SMS'<\/span><\/span>\r\n uses<\/span>: sms77io\/github-action-sms@master<\/span>\r\n with<\/span>:\r\n from<\/span>: '<\/span>Tommy Tester'<\/span><\/span>\r\n text<\/span>: '<\/span>Sms77.io wishes you a nice day!'<\/span><\/span>\r\n to<\/span>: '<\/span>+4901234567890,Tina Testing'<\/span><\/span>\r\n env<\/span>:\r\n SMS77_API_KEY<\/span>: ${{ secrets.SMS77_API_KEY }}<\/span><\/pre>\nInput<\/h4>\n
apiKey<\/code> Mandatory<\/p>\nAn API key from sms77.io. Alternatively, use the SMS77_API_KEY environment variable.<\/p>\n
to<\/code> Mandatory<\/p>\nPhone number(s) or contact(s), separated by comma, to which the SMS should be sent.<\/p>\n
text<\/code> Mandatory<\/p>\nThe actual message you want to send to the recipient(s).<\/p>\n
delay<\/code><\/p>\nDelayed sending at the specified time: Unix timestamp or format yyyy-mm-dd hh:ii<\/p>\n
foreign_id<\/code><\/p>\nForeign ID to be returned in callbacks. Allowed characters: a-z, A-Z, 0-9, .-_@<\/p>\n
from<\/code><\/p>\nsender ID (sender name); max. 16 numeric or 11 alphanumeric characters<\/p>\n
label<\/code><\/p>\nUser-defined label. Allowed characters: a-z, A-Z, 0-9, .-_@<\/p>\n
ttl<\/code><\/p>\nTime To Live (validity period) in minutes. Default is 2880<\/p>\n
udh<\/code><\/p>\nUser data header: If set and the text contains hex code, the SMS will be sent as 8-bit binary file.<\/p>\n
Output<\/h4>\n
response<\/code><\/p>\nReturns a return code<\/a> from our API.<\/p>\nGitHub Action Voice<\/h3>\n[GitHub repo=’github-action-vpoce’ lang=’en’]\nVoice GitHub Action on the GitHub Marketplace<\/a><\/p>\nFunction<\/h4>\n
Send a voice message (text to speech message) when triggered in a workflow.
\nVoice messages are text messages that are sent to the recipient as a call\u00a0and are then read aloud on the phone.<\/p>\n
Use<\/h4>\n\n- Set up the credentials by specifying
SMS77_API_KEY<\/code> in your repository settings.<\/li>\n- Add the following to your workflow:<\/li>\n<\/ol>\n
name<\/span>: '<\/span>Send Voice'<\/span><\/span>\r\n uses<\/span>: sms77io\/github-action-voice@master<\/span>\r\n with<\/span>:\r\n from<\/span>: '<\/span>Tommy Tester'<\/span><\/span>\r\n text<\/span>: '<\/span>Sms77.io wishes you a nice day!'<\/span><\/span>\r\n to<\/span>: '<\/span>+4901234567890'<\/span><\/span>\r\n env<\/span>:\r\n SMS77_API_KEY<\/span>: ${{ secrets.SMS77_API_KEY }}<\/span><\/pre>\nInputs<\/h4>\n
apiKey<\/code> Mandatory<\/p>\nAn API key from Sms77.io. Alternatively, use environment variable SMS77_API_KEY.<\/p>\n
to<\/code> Mandatory<\/p>\nPhone number to send the voice message to<\/p>\n
text<\/code> Mandatory<\/p>\nThe actual message content you want to send to the recipients<\/p>\n
from<\/code><\/p>\nSender ID (sender name); maximum 16 numeric or 11 alphanumeric characters are allowed<\/p>\n
Outputs<\/h4>\n
response<\/code><\/p>\nReturns a return code<\/a> from our API.<\/p>\nSupport<\/h3>\n