From f4755fc11373c8a255732e4e8c0e50f1aa745f77 Mon Sep 17 00:00:00 2001 From: Steve Gill Date: Mon, 17 May 2021 14:14:42 -0700 Subject: [PATCH] v1.12.0 --- .github/workflows/customJson.yml | 2 +- .github/workflows/main.yml | 2 +- dist/index.js | 3 +-- index.js | 3 +-- package.json | 2 +- 5 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/customJson.yml b/.github/workflows/customJson.yml index 880f4ca..cf0ab2f 100644 --- a/.github/workflows/customJson.yml +++ b/.github/workflows/customJson.yml @@ -7,7 +7,7 @@ jobs: steps: - name: Publish to slack id: slack - uses: slackapi/slack-github-action@v1.11.0 + uses: slackapi/slack-github-action@v1.12.0 with: payload: "{\"key\":\"value\",\"foo\":\"bar\"}" env: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 376c86b..ebc57c5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,7 +7,7 @@ jobs: steps: - name: Publish to slack id: slack - uses: slackapi/slack-github-action@v1.11.0 + uses: slackapi/slack-github-action@v1.12.0 with: channel-id: 'CTAAHRA79' slack-message: 'posting from a github action!' diff --git a/dist/index.js b/dist/index.js index f29206f..b71ef5e 100644 --- a/dist/index.js +++ b/dist/index.js @@ -16102,8 +16102,7 @@ try { } console.log('webhookURL type', typeof webhookUrl) - if (typeof webhookUrl !== undefined) { - // && webhookUrl.length > 0 + if (typeof webhookUrl !== 'undefined' && webhookUrl.length > 0) { console.log('flattening'); // send flat payload to webhookUrl const flatPayload = flatten(payload); diff --git a/index.js b/index.js index e0b1c55..a938ca1 100644 --- a/index.js +++ b/index.js @@ -58,8 +58,7 @@ try { } console.log('webhookURL type', typeof webhookUrl) - if (typeof webhookUrl !== undefined) { - // && webhookUrl.length > 0 + if (typeof webhookUrl !== 'undefined' && webhookUrl.length > 0) { console.log('flattening'); // send flat payload to webhookUrl const flatPayload = flatten(payload); diff --git a/package.json b/package.json index 03ce58b..b598b4d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "slack-github-action", - "version": "1.11.0", + "version": "1.12.0", "description": "The official slack github action. Use this to send data into your Slack workspace", "main": "dist/index.js", "scripts": {