Skip to content
message-square

GitHub Action

discord-action

v2.0 Latest version

discord-action

message-square

discord-action

Send a message to a Discord webhook

Installation

Copy and paste the following snippet into your .yml file.

              

- name: discord-action

uses: sebastianpopp/[email protected]

Learn more about this action in sebastianpopp/discord-action

Choose a version

discord-action

Send a message to a Discord webhook. Follow this guide to create a webhook if you don't have one already.

Example usage

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 parameters

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