updated to 1.6.0
customJson.yml / New push to repo (push) Successful in 3s
main.yml / New push to repo (push) Failing after 1s

This commit is contained in:
Steve Gill
2021-05-13 17:04:43 -07:00
parent 910f3b0e0d
commit 51ab05d72d
5 changed files with 12 additions and 9 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ jobs:
steps:
- name: Publish to slack
id: slack
uses: slackapi/slack-github-action@v1.5.0
uses: slackapi/slack-github-action@v1.6.0
with:
payload: '{key: "value", foo: "bar"}'
env:
+1 -1
View File
@@ -7,7 +7,7 @@ jobs:
steps:
- name: Publish to slack
id: slack
uses: slackapi/slack-github-action@v1.5.0
uses: slackapi/slack-github-action@v1.6.0
with:
channel-id: 'CTAAHRA79'
slack-message: 'posting from a github action!'
+6 -4
View File
@@ -16057,9 +16057,11 @@ try {
let payload = core.getInput('payload');
console.log('payload:')
console.log(payload)
console.log(typeof payload)
if (payload === undefined) {
if (payload.length > 0) {
console.log('undefined payload');
console.log('no payload passed in, using payload that triggered the GitHub Action')
// Get the JSON webhook payload for the event that triggered the workflow
@@ -16081,11 +16083,11 @@ try {
throw 'Need to provide at least one botToken or webhookUrl'
}
const channelId = core.getInput('channel-id');
console.log('channelId', channelId, typeof channelId)
if (botToken.length > 0 && channelId !== undefined) {
if (botToken.length > 0) {
const message = core.getInput('slack-message');
const channelId = core.getInput('channel-id');
console.log('message', message, typeof message)
console.log('channelId', channelId, typeof channelId)
const web = new WebClient(botToken);
+3 -2
View File
@@ -13,10 +13,11 @@ try {
let payload = core.getInput('payload');
console.log('payload')
console.log('payload:')
console.log(payload)
console.log(typeof payload)
if (payload === undefined) {
if (payload.length > 0) {
console.log('undefined payload');
console.log('no payload passed in, using payload that triggered the GitHub Action')
// Get the JSON webhook payload for the event that triggered the workflow
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "slack-github-action",
"version": "1.5.0",
"version": "1.6.0",
"description": "The official slack github action. Use this to send data into your Slack workspace",
"main": "dist/index.js",
"scripts": {