Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
message-square

GitHub Action

Send Discord Message

v1.1.9

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.

Inputs

github_token

Required The GitHub token used to authenticate with the GitHub API.

discord_webhook

Required The URL of the Discord webhook you want to send messages to.

message

Required The message you want to send.

The status of the action execution. '0' indicates success.

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!'