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: steps:
- name: Publish to slack - name: Publish to slack
id: slack id: slack
uses: stevengill/[email protected].0 uses: stevengill/[email protected].1
with: with:
channel-id: 'CTAAHRA79' channel-id: 'CTAAHRA79'
# slack-message: 'posting from a github action!' # slack-message: 'posting from a github action!'
+5 -4
View File
@@ -8,8 +8,9 @@ try {
const botToken = process.env.SLACK_BOT_TOKEN; const botToken = process.env.SLACK_BOT_TOKEN;
const webhookUrl = process.env.SLACK_WEBHOOK_URL; const webhookUrl = process.env.SLACK_WEBHOOK_URL;
console.log('botToken', botToken) console.log('botToken', botToken, typeof botToken)
console.log('webhookUrl', webhookUrl) console.log('webhookUrl', webhookUrl, typeof webhookUrl)
// 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;
@@ -22,8 +23,8 @@ try {
if (botToken) { if (botToken) {
const message = core.getInput('slack-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, typeof message)
console.log('channelId', channelId) console.log('channelId', channelId, typeof channelId)
const web = new WebClient(botToken); const web = new WebClient(botToken);
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "slack-github-action", "name": "slack-github-action",
"version": "1.3.0", "version": "1.3.1",
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {