From 45f51d220a65f1fd0dd443693b52557e34efc8ee Mon Sep 17 00:00:00 2001 From: Steve Gill Date: Mon, 17 May 2021 13:20:35 -0700 Subject: [PATCH] v1.9.0 --- .github/workflows/customJson.yml | 2 +- .github/workflows/main.yml | 2 +- index.js | 3 ++- package.json | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/customJson.yml b/.github/workflows/customJson.yml index 6b0e4b1..def29c5 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.8.0 + uses: slackapi/slack-github-action@v1.9.0 with: payload: "{\"key\":\"value\",\"foo\":\"bar\"}" env: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 29aeba4..0bf3bb8 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.8.0 + uses: slackapi/slack-github-action@v1.9.0 with: channel-id: 'CTAAHRA79' slack-message: 'posting from a github action!' diff --git a/index.js b/index.js index e1677cd..8ffb67b 100644 --- a/index.js +++ b/index.js @@ -57,7 +57,8 @@ try { } } - if (webhookUrl.length > 0) { + console.log('webhookURL type', typeof webhookUrl) + if (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 ec26d34..ba102fd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "slack-github-action", - "version": "1.8.0", + "version": "1.9.0", "description": "The official slack github action. Use this to send data into your Slack workspace", "main": "dist/index.js", "scripts": {