updated github action
main.yml / New push to repo (push) Failing after 2s
main.yml / New push to repo (push) Failing after 2s
This commit is contained in:
@@ -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!'
|
||||
|
||||
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "slack-github-action",
|
||||
"version": "1.3.0",
|
||||
"version": "1.3.1",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user