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:
|
steps:
|
||||||
- name: Publish to slack
|
- name: Publish to slack
|
||||||
id: slack
|
id: slack
|
||||||
uses: stevengill/[email protected].1
|
uses: stevengill/[email protected].2
|
||||||
with:
|
with:
|
||||||
channel-id: 'CTAAHRA79'
|
channel-id: 'CTAAHRA79'
|
||||||
# slack-message: 'posting from a github action!'
|
# slack-message: 'posting from a github action!'
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ try {
|
|||||||
|
|
||||||
const web = new WebClient(botToken);
|
const web = new WebClient(botToken);
|
||||||
|
|
||||||
if(channelId !== undefined && message !== undefined) {
|
if(channelId.length > 0 && message.length > 0) {
|
||||||
// post message
|
// post message
|
||||||
web.chat.postMessage({text: message, channel: channelId});
|
web.chat.postMessage({text: message, channel: channelId});
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "slack-github-action",
|
"name": "slack-github-action",
|
||||||
"version": "1.3.1",
|
"version": "1.3.2",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user