Skip to content

This is a simple discord hook action to send a message to your discord server upon building for real time notifications of build status.

License

Notifications You must be signed in to change notification settings

Poss111/discord-hook-action

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

Repository files navigation

Discord Webhook Action

Author : Poss111

Latest Version: v1.6.12 DiscordWebhookCICD

Table of Contents

Inputs

This is a simple discord hook action to send a message to your discord server upon building for real time notifications of build status.

Inputs Optional Description Default (If applicable)
discord-hook-url No The webhook url created for your discord server to post your expected message to
title Yes Title to be given to your embedded message Github Action Notification
message Yes Message to be given with embedded message Here is a quick update!
message-color Yes Color to be given alongside embedded message 65345
branch Yes The git branch for the build
sha Yes The sha of the git commit being built
buildNumber Yes The build number of the current action
triggeredBy Yes Who has triggered this action
actionUrl Yes The link to the job being built

Outputs

Outputs Description
successful Was the message successfully sent

Usage

Here is a quick snippet to speed up integrating this into your workflow. NOTE: Replace the discord-hook-url with your server's webhook url

    steps:
      - name: Test Step for Discord Action
        id: discordAction
        uses: Poss111/discord-hook-action@v1.6.12
        with:
          discord-hook-url: 'https://replace/with/your/discord/webhook/url'
          title: 'Sample Title'
          message: 'Sample Message'
          message-color: '65345'
      - name: Was Job Successful
        run: echo "The job was successful ran > ${{ steps.discordAction.outputs.successful }}"

Discord Message Example

Here is a sample of what your message may look like once posted to your sever.

Sample Discord Embedded Message

Final Notes

If you have any bugs or enhancements with the action, please post them along with the following details For Bugs

  1. A snippet of the failure output from the action

For Enhancements

  1. Sample output for change (If you want to modify the format of the card, you can propose one from here and post it with the issue Discord Embedded Message Generator)

Thank you all! I hope you enjoy this action and use it well! :D

About

This is a simple discord hook action to send a message to your discord server upon building for real time notifications of build status.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published