madebyluque / action-discord-notifier

Send commits log to discord via webhook, with your lovely GitHub Actions!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Discord Notifier

This github action was originally written by BinotaLIU. I just forked it to enable users to add their own description messages.

A GitHub Action to post message to discord using discord webhook

This is a JavaScript action, so it should work on all machines include Windows, Linux, and macOS.

Quick Example

on:
  push:
    branches:
      - '**'

name: Discord Notification

jobs:
  notify:
    name: Discord Notification
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - uses: fateyan/action-discord-notifier@v1
        with:
          message-title: New Commits Pushed
          message-description: Discord message description
          webhook: https://discordapp.com/api/webhooks/00000000000/secret

For more about workflow configuration, please see GitHub Help.

About Discord webhook, please see this article on Discord Help Centre.

Usage

Argument Required Description
webhook ✔️ A full webhook url. MUST NOT append /github at the end.
message-title Custom embed message title. Optional.
message-description Custom embed message description. Optional.

About

Send commits log to discord via webhook, with your lovely GitHub Actions!

License:MIT License


Languages

Language:JavaScript 100.0%