Skip to content

Commit

Permalink
[npm] run publish
Browse files Browse the repository at this point in the history
  • Loading branch information
8398a7 committed Sep 16, 2019
1 parent a95c62d commit be9b8f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ function run() {
const icon_emoji = core.getInput('icon_emoji');
const icon_url = core.getInput('icon_url');
const channel = core.getInput('channel');
const rawPayload = core.getInput('payload');
core.debug(`status: ${status}`);
core.debug(`mention: ${mention}`);
core.debug(`author_name: ${author_name}`);
Expand All @@ -39,6 +40,7 @@ function run() {
core.debug(`icon_emoji: ${icon_emoji}`);
core.debug(`icon_url: ${icon_url}`);
core.debug(`channel: ${channel}`);
core.debug(`rawPayload: ${rawPayload}`);
const client = new client_1.Client({
mention,
author_name,
Expand All @@ -59,7 +61,7 @@ function run() {
yield client.cancel(text);
break;
case 'custom':
const payload = JSON.parse(core.getInput('payload'));
var payload = eval(`payload = ${rawPayload}`);
yield client.send(payload);
break;
default:
Expand Down

0 comments on commit be9b8f0

Please sign in to comment.