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].2
|
||||
uses: stevengill/[email protected].3
|
||||
with:
|
||||
channel-id: 'CTAAHRA79'
|
||||
# slack-message: 'posting from a github action!'
|
||||
|
||||
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "slack-github-action",
|
||||
"version": "1.3.2",
|
||||
"version": "1.3.3",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user