Author : Poss111
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 | Description |
---|---|
successful | Was the message successfully sent |
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 }}"
Here is a sample of what your message may look like once posted to your sever.
If you have any bugs or enhancements with the action, please post them along with the following details For Bugs
- A snippet of the failure output from the action
For Enhancements
- 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)