debugging message

This commit is contained in:
Steve Gill
2020-10-28 16:55:04 -07:00
parent 2543ecd1b8
commit 4d3c294c69
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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 }}
+1 -1
View File
@@ -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:
+2 -2
View File
@@ -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)