Skip to content

v1.6.0

v1.6.0 #20

name: notify discord
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"

Check failure on line 22 in .github/workflows/notify-release-to-discord.yaml

View workflow run for this annotation

GitHub Actions / notify discord

Invalid workflow file

The workflow is not valid. .github/workflows/notify-release-to-discord.yaml (Line: 22, Col: 9): 'MESSAGE_TITLE' is already defined .github/workflows/notify-release-to-discord.yaml (Line: 23, Col: 9): 'MESSAGE_DESCRIPTION' is already defined
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;