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);