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"