-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: David Young <davidy@funkypenguin.co.nz>
- Loading branch information
1 parent
5a15cc1
commit 347c3e8
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |