Skip to content
message-square

GitHub Action

Send Discord Message

v1.1.11 Latest version

Send Discord Message

message-square

Send Discord Message

This simple action permit you to send some messages to a Discord channel, using a webhook

Installation

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

              

- name: Send Discord Message

uses: Enichy/[email protected]

Learn more about this action in Enichy/Send_Discord_Message_Action

Choose a version

Send Discord Message Action

This GitHub Action allows you to send messages to a Discord channel using a webhook. More parameters and features will be available in the future.

Inputs

github_token

Required The GitHub token used to authenticate with the GitHub API. Else it will throw an error.

discord_webhook

Required The URL of the Discord webhook you want to send messages to. Else it will throw an error.

message

Required The message you want to send. Else it will throw an error.

Example usage

steps:
- name: Send message to Discord
  uses: Enichy/[email protected]
  with:
    github_token: ${{ secrets.GITHUB_TOKEN }}
    discord_webhook: ${{ secrets.DISCORD_WEBHOOK }}
    message: 'Hello, World!'