updated github action
main.yml / New push to repo (push) Failing after 2s

This commit is contained in:
Steve Gill
2020-10-29 15:12:06 -07:00
parent 9c8941c365
commit dda51d0615
3 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ jobs:
steps:
- name: Publish to slack
id: slack
uses: stevengill/[email protected].0
uses: stevengill/[email protected].1
with:
channel-id: 'CTAAHRA79'
# slack-message: 'posting from a github action!'
+5 -4
View File
@@ -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);
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "slack-github-action",
"version": "1.3.0",
"version": "1.3.1",
"description": "",
"main": "index.js",
"scripts": {