updated to v1.7.0
customJson.yml / New push to repo (push) Failing after 3s
main.yml / New push to repo (push) Successful in 2s

This commit is contained in:
Steve Gill
2021-05-13 17:08:16 -07:00
parent 51ab05d72d
commit a9900b4aeb
5 changed files with 9 additions and 7 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ jobs:
steps:
- name: Publish to slack
id: slack
uses: slackapi/slack-github-action@v1.6.0
uses: slackapi/slack-github-action@v1.7.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.6.0
uses: slackapi/slack-github-action@v1.7.0
with:
channel-id: 'CTAAHRA79'
slack-message: 'posting from a github action!'
+3 -2
View File
@@ -16059,14 +16059,15 @@ try {
let payload = core.getInput('payload');
console.log('payload:')
console.log(payload)
console.log(typeof payload)
console.log(typeof payload, payload.length)
if (payload.length > 0) {
if (payload.length < 1) {
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
payload = github.context.payload;
} else {
console.log('in else')
try {
// confirm it is valid json
payload = JSON.parse(payload);
+3 -2
View File
@@ -15,14 +15,15 @@ try {
let payload = core.getInput('payload');
console.log('payload:')
console.log(payload)
console.log(typeof payload)
console.log(typeof payload, payload.length)
if (payload.length > 0) {
if (payload.length < 1) {
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
payload = github.context.payload;
} else {
console.log('in else')
try {
// confirm it is valid json
payload = JSON.parse(payload);
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "slack-github-action",
"version": "1.6.0",
"version": "1.7.0",
"description": "The official slack github action. Use this to send data into your Slack workspace",
"main": "dist/index.js",
"scripts": {