From ffe860b8362fd895206f514264cdf00a1b162844 Mon Sep 17 00:00:00 2001 From: SolDev69 <40839581+SolDev69@users.noreply.github.com> Date: Wed, 10 May 2023 12:25:10 -0400 Subject: [PATCH] Update discord-webhook.yml h --- .github/workflows/discord-webhook.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/discord-webhook.yml b/.github/workflows/discord-webhook.yml index 4e55e93..e526f7c 100644 --- a/.github/workflows/discord-webhook.yml +++ b/.github/workflows/discord-webhook.yml @@ -1,19 +1,17 @@ name: Send Discord webhook on push on: + workflow_dispatch: + push: branches: - main # Replace with the name of your branch - jobs: - send-webhook: + message: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Send Discord webhook - uses: distributhor/discord-webhook-action@v1 - with: - url: ${{ secrets.DISCORD_WEBHOOK_URL }} - payload: '{"content": "New commit pushed to repository"}' + - name: Discord Webhook Action + uses: tsickert/discord-webhook@v5.3.0 + with: + webhook-url: ${{ secrets.WEBHOOK_URL }} + content: "Test"