diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..48c7a72 --- /dev/null +++ b/action.yml @@ -0,0 +1,16 @@ +name: "Clockwork Send SMS" +description: "Send an SMS using Clockwork" +author: "Bharathvaj Ganesan " +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" diff --git a/index.js b/index.js index 6059a53..ce41e23 100644 --- a/index.js +++ b/index.js @@ -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); } });