debugging message
This commit is contained in:
@@ -11,7 +11,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
who-to-greet: 'Steve'
|
who-to-greet: 'Steve'
|
||||||
channel-id: 'CTAAHRA79'
|
channel-id: 'CTAAHRA79'
|
||||||
message: 'posting from a github action!'
|
slack-message: 'posting from a github action!'
|
||||||
env:
|
env:
|
||||||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
|
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
||||||
|
|||||||
+1
-1
@@ -8,7 +8,7 @@ inputs:
|
|||||||
channel-id: # channel id to post message when using bot token
|
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'
|
description: 'Slack channel ID where message will be posted. Needed if using bot token'
|
||||||
required: false
|
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'
|
description: 'Message to post into Slack. Needed if using bot token'
|
||||||
required: false
|
required: false
|
||||||
outputs:
|
outputs:
|
||||||
|
|||||||
@@ -18,10 +18,10 @@ try {
|
|||||||
|
|
||||||
// Get the JSON webhook payload for the event that triggered the workflow
|
// Get the JSON webhook payload for the event that triggered the workflow
|
||||||
const payload = github.context.payload;
|
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) {
|
if (botToken) {
|
||||||
const message = core.getInput('message');
|
const message = core.getInput('slack-message');
|
||||||
const channelId = core.getInput('channel-id');
|
const channelId = core.getInput('channel-id');
|
||||||
console.log('message', message)
|
console.log('message', message)
|
||||||
console.log('channelId', channelId)
|
console.log('channelId', channelId)
|
||||||
|
|||||||
Reference in New Issue
Block a user