Skip to content

Action for Github Workflows: Send a custom message to a Discord channel as one of the Dio characters

Notifications You must be signed in to change notification settings

dungeoneer-io/sc-discord-notification-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sc-discord-notification-action

Github Action for sending Discord Notifications to Dungeoneer.io admins on the #the-small-council channel

Usage

To add this Github Action to your Github workflow, "use" this repository and provide webhook and message. Example usage in a step:

name: Chirp on Commit

on:
  push:
    branches:
      - main

jobs: 
  lmbda: 
    runs-on: ubuntu-latest
    steps: 
      - name: "Send Notification"
        uses: dungeoneer-io/[email protected]
        with:
          webhook: "${{ secrets.DISCORD_NOTIFICATION_WEBHOOK }}"
          message: ":rocket: **dungeoneer-io/lmda-mythic-enum-scanner** lambda deployed\n```\n${{ github.event.head_commit.message }}\n```\n\n"

webhook: Provide the URL from Discord for sending a message as a bot.

  • Create a Discord Bot/Webhook with: Integrations > Webhooks > New Webhook then "Copy Webhook URL" once created
  • Best practice would be to provide the value to your Workflow using Github Action Secrets so you don't expose the webhook to the interwebs

message: Provide the plain-text message to send to Discord

  • It will recognize emojis like :rocket: for 🚀
  • Use \n for line breaks
  • Can include variables inline with ${{ workflow_variable }}

About

Action for Github Workflows: Send a custom message to a Discord channel as one of the Dio characters

Resources

Stars

Watchers

Forks

Packages

No packages published