Skip to content

Commit

Permalink
fix: add action yaml file
Browse files Browse the repository at this point in the history
  • Loading branch information
bharathvaj-ganesan committed Aug 23, 2020
1 parent 47c4466 commit dc9f483
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
16 changes: 16 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "Clockwork Send SMS"
description: "Send an SMS using Clockwork"
author: "Bharathvaj Ganesan <bharathvaj1995@gmail.com>"
branding:
icon: "send"
color: "green"
inputs:
to:
description: "The number to send SMS to"
required: true
content:
description: "The message content to send"
required: true
runs:
using: "node12"
main: "index.js"
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const clockwork = new Clockwork({
});

// Sends SMS
clockwork.sendSms({ To: core.getInput("to"), Content: core.getInput("content") }, function (error, response) {
clockwork.sendSms({ To: core.getInput("to"), Content: core.getInput("content") }, function (error) {
if (error) {
return core.setFailed(error);
return core.setFailed(error.errDesc);
}
});

0 comments on commit dc9f483

Please sign in to comment.