From c616fa95aff7c38b7b2a2fe642ab4b18dd0d348d Mon Sep 17 00:00:00 2001 From: Steve Gill Date: Thu, 13 May 2021 16:59:19 -0700 Subject: [PATCH] updated action --- index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 3fdd0c7..5c8befb 100644 --- a/index.js +++ b/index.js @@ -13,6 +13,7 @@ try { let payload = core.getInput('payload'); + console.log('payload') console.log(payload) if (payload === undefined) { @@ -37,11 +38,11 @@ try { throw 'Need to provide at least one botToken or webhookUrl' } - const channelId = core.getInput('channel-id'); - console.log('channelId', channelId, typeof channelId) - if (botToken.length > 0 && channelId !== undefined) { + if (botToken.length > 0) { const message = core.getInput('slack-message'); + const channelId = core.getInput('channel-id'); console.log('message', message, typeof message) + console.log('channelId', channelId, typeof channelId) const web = new WebClient(botToken);