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)