Skip to content

Commit

Permalink
Add discord hook
Browse files Browse the repository at this point in the history
Signed-off-by: David Young <davidy@funkypenguin.co.nz>
  • Loading branch information
funkypenguin committed May 31, 2024
1 parent 5a15cc1 commit 347c3e8
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/notify-release-to-discord.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: notify discord

on:
release:
types: [published]

jobs:
github-releases-to-discord:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
name: Notification on push

on:
release:
types: [published]

jobs:
sending:
runs-on: ubuntu-latest
steps:
- name: Discord notification
uses: LeGitHubDeTai/github-to-discord@main
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL }}
DISCORD_USERNAME: Tai Studio
DISCORD_AVATAR: https://raw.githubusercontent.com/LeGitHubDeTai/github-to-discord/main/icon.png
MESSAGE_TITLE: New treats, y'all!
MESSAGE_DESCRIPTION: Github Action By Tai Studio
MESSAGE_URL: https://elfhosted.com
MESSAGE_COLOR: 5814783
CONTENT: Hello, I am content
MESSAGE_TITLE: "New Version"
MESSAGE_DESCRIPTION: "This is a new message, blah blah "
MESSAGE_URL: 'https://github.com/LeGitHubDeTai/github-to-discord'
SECTION_NAME: "ChangeLog"
AUTHOR_NAME: "Spanky the ElfBot"
AUTHOR_URL: "https://elfhosted.com/app/elfbot/"
AUTHOR_AVATAR: "https://tai-studio.ml/img/icons/Tai_Studio_discord.png"
FOOTER_TEXT: "- Tai Studio © 2021 -"
FOOTER_URL: "https://tai-studio.ml/img/icons/Tai_Studio_discord.png"
IMAGE: null;

0 comments on commit 347c3e8

Please sign in to comment.