ridlees / tyntec-github-action-sms-beta

Send an SMS through GitHub Actions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tyntec SMS action status

tyntec SMS GitHub Action

This action blocks the given number of milliseconds. To learn how this action was built, see "Create a JavaScript Action using TypeScript".

Inputs

milliseconds

Required The number of milliseconds to block.

Outputs

time

The time the action stopped.

Example usage

uses: tyntec/github-action-sms@main
with:
  milliseconds: 1000

Development

Install the dependencies

$ npm install

Build the typescript and package it for distribution

$ npm run build && npm run package

Run the tests ✔️

$ npm test

 PASS  ./main.test.js
  ✓ throws invalid number (3ms)
  ✓ wait 500 ms (504ms)
  ✓ test runs (742ms)

...

Publish to a distribution branch

Actions are run from GitHub repos so we will checkin the packed dist folder.

Then run ncc and push the results:

$ npm run package
$ git add dist
$ git commit -a -m "prod dependencies"
$ git push origin releases/v1

Your action is now published! 🚀

Usage

After testing you can create a v1 tag to reference the stable and latest V1 action

About

Send an SMS through GitHub Actions

License:MIT License


Languages

Language:TypeScript 90.9%Language:JavaScript 9.1%