From dda51d061511d66a70d2a9213f289b80a81af70f Mon Sep 17 00:00:00 2001 From: Steve Gill Date: Thu, 29 Oct 2020 15:02:28 -0700 Subject: [PATCH] updated github action --- .github/workflows/main.yml | 2 +- index.js | 9 +++++---- package.json | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0b2557e..7b026f6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,7 +7,7 @@ jobs: steps: - name: Publish to slack id: slack - uses: stevengill/slack-github-action@v1.3.0 + uses: stevengill/slack-github-action@v1.3.1 with: channel-id: 'CTAAHRA79' # slack-message: 'posting from a github action!' diff --git a/index.js b/index.js index 9875a28..7e9ec3f 100644 --- a/index.js +++ b/index.js @@ -8,8 +8,9 @@ try { const botToken = process.env.SLACK_BOT_TOKEN; const webhookUrl = process.env.SLACK_WEBHOOK_URL; - console.log('botToken', botToken) - console.log('webhookUrl', webhookUrl) + console.log('botToken', botToken, typeof botToken) + console.log('webhookUrl', webhookUrl, typeof webhookUrl) + // Get the JSON webhook payload for the event that triggered the workflow const payload = github.context.payload; @@ -22,8 +23,8 @@ try { if (botToken) { const message = core.getInput('slack-message'); const channelId = core.getInput('channel-id'); - console.log('message', message) - console.log('channelId', channelId) + console.log('message', message, typeof message) + console.log('channelId', channelId, typeof channelId) const web = new WebClient(botToken); diff --git a/package.json b/package.json index cf0d734..19e0130 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "slack-github-action", - "version": "1.3.0", + "version": "1.3.1", "description": "", "main": "index.js", "scripts": {