From a3ab845bf840aef1f9a1ef2d1b6cbda5a890b348 Mon Sep 17 00:00:00 2001 From: Johnny Huynh Date: Tue, 6 Jul 2021 23:19:25 +1000 Subject: [PATCH] fix: Try fix webhook --- README.md | 3 +++ src/index.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9851d34..2b31e77 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,9 @@ jobs: git: runs-on: ubuntu-latest steps: + + - uses: actions/checkout@v2 + - name: Run Discord Webhook uses: johnnyhuy/discord-webhook@main with: diff --git a/src/index.js b/src/index.js index 9ec8cba..215b74d 100644 --- a/src/index.js +++ b/src/index.js @@ -22,7 +22,7 @@ async function run() { const webhookUrl = core.getInput("webhook_url"); const links = core.getInput("links") - if (!!webhookUrl) { + if (webhookUrl !== '') { const url = webhookUrl.split('/'); const id = url[5]; const token = url[6];