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

This commit is contained in:
Steve Gill
2020-10-29 15:17:52 -07:00
parent 644b5ec195
commit 8ce2fc495e
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ jobs:
steps:
- name: Publish to slack
id: slack
uses: stevengill/[email protected].2
uses: stevengill/[email protected].3
with:
channel-id: 'CTAAHRA79'
# slack-message: 'posting from a github action!'
+2 -2
View File
@@ -20,7 +20,7 @@ try {
throw 'Need to provide at least one botToken or webhookUrl'
}
if (botToken) {
if (botToken.length > 0) {
const message = core.getInput('slack-message');
const channelId = core.getInput('channel-id');
console.log('message', message, typeof message)
@@ -36,7 +36,7 @@ try {
}
}
if (webhookUrl) {
if (webhookUrl.length > 0) {
// send flat payload to webhookUrl
const flatPayload = flatten(payload);
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "slack-github-action",
"version": "1.3.2",
"version": "1.3.3",
"description": "",
"main": "index.js",
"scripts": {