Skip to content

A GitHub action for sending an enhanced, fully customizable, Discord notification embed.

License

Notifications You must be signed in to change notification settings

Retr0-01/better-discord-notification

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Better Discord Notification

GitHub release (latest by date) GitHub Workflow Status GitHub
A GitHub action for sending an enhanced, fully customizable, Discord notification embed.

Usage

All options must be quoted. If your webhook-url is provided by using secrets, do not quote it.

Input Type Required Description Default
webhook-url string yes The Discord webhook URL this notification will be send to. -
msg-content string no The message that will be included in the Webhook. -
embed-color int no The embed's color, in decimal form. 0
footer-icon string no A small icon to put on the footer. Image
ignore-hidden bool no Branches that contain the phase hidden/ in them will be ignored. true

Example Workflow

name: Discord Notification

on:
  push:
    branches: [ main ] # Replace main with your branch name.

jobs:
  Notify:
    runs-on: ubuntu-latest
    name: Send Notification
    steps:
      - name: Send Notification
        uses: Retr0-01/better-discord-notification@main
        with:
          webhook-url: ${{ secrets.CI_DISCORD_WEBHOOK }} # It is recommended to store your webhooks using actions secrets
          msg-content: '@everyone'
          embed-color: '3093151'
          footer-icon: 'https://cdn.discordapp.com/attachments/712252851283296260/961953852897255454/706526933973860412.png'
          ignore-hidden: 'false'

Results

image

About

A GitHub action for sending an enhanced, fully customizable, Discord notification embed.

Topics

Resources

License

Stars

Watchers

Forks