Skip to content

Commit

Permalink
fix: Try fix webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyhuy committed Jul 6, 2021
1 parent b1dbb6a commit a3ab845
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit a3ab845

Please sign in to comment.