From 4d3c294c69fe13d7c8899a88e9ec00aca96489c6 Mon Sep 17 00:00:00 2001 From: Steve Gill Date: Wed, 28 Oct 2020 16:55:04 -0700 Subject: [PATCH] debugging message --- .github/workflows/main.yml | 2 +- action.yml | 2 +- index.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a17eace..4b24fad 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,7 @@ jobs: with: who-to-greet: 'Steve' channel-id: 'CTAAHRA79' - message: 'posting from a github action!' + slack-message: 'posting from a github action!' env: SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} diff --git a/action.yml b/action.yml index 5941a42..d01c362 100644 --- a/action.yml +++ b/action.yml @@ -8,7 +8,7 @@ inputs: channel-id: # channel id to post message when using bot token description: 'Slack channel ID where message will be posted. Needed if using bot token' required: false - message: # message to post when using bot token + slack-message: # message to post when using bot token description: 'Message to post into Slack. Needed if using bot token' required: false outputs: diff --git a/index.js b/index.js index 2069c5c..a599459 100644 --- a/index.js +++ b/index.js @@ -18,10 +18,10 @@ try { // Get the JSON webhook payload for the event that triggered the workflow const payload = github.context.payload; - console.log(`The event payload: ${JSON.stringify(payload, undefined, 2)}`); + // console.log(`The event payload: ${JSON.stringify(payload, undefined, 2)}`); if (botToken) { - const message = core.getInput('message'); + const message = core.getInput('slack-message'); const channelId = core.getInput('channel-id'); console.log('message', message) console.log('channelId', channelId)