Send a message to a Discord webhook. Follow this guide to create a webhook if you don't have one already.
name: Deploy
on: push
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: discord
uses: sebastianpopp/discord-action@releases/v2
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
message: ${{ github.repository }} has been successfullly deployed.
Input parameter | Description | Required | Default |
---|---|---|---|
webhook | Discord webhook URL. Follow this guide to create a webhook if you don't have one already. Do not add /github or any other suffix. |
Yes | N/A |
message | Message to be sent | Yes | N/A |