2022-10-09 16:40:51 +02:00
|
|
|
name: Announce release on discord
|
|
|
|
on:
|
|
|
|
release:
|
2023-03-06 11:38:30 +01:00
|
|
|
types: [ published ]
|
2022-10-09 16:40:51 +02:00
|
|
|
jobs:
|
|
|
|
send_announcement:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: send custom message with args
|
|
|
|
env:
|
|
|
|
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
|
|
|
DISCORD_USERNAME: PlotSquared Release
|
|
|
|
DISCORD_AVATAR: https://raw.githubusercontent.com/IntellectualSites/Assets/main/plugins/PlotSquared/PlotSquared.png
|
2023-03-05 10:15:38 +01:00
|
|
|
uses: Ilshidur/action-discord@08d9328877d6954120eef2b07abbc79249bb6210 # ratchet:Ilshidur/action-discord@0.3.2
|
2022-10-09 16:40:51 +02:00
|
|
|
with:
|
|
|
|
args: |
|
|
|
|
"<@&525015541815967744> <@&679322738552471574> <@&699293353862496266>"
|
|
|
|
""
|
|
|
|
"<:plotsquared:730750385886593039> **PlotSquared ${{ github.event.release.tag_name }} has been released!**"
|
|
|
|
""
|
|
|
|
"Click here to view changelog: https://github.com/IntellectualSites/PlotSquared/releases/tag/${{ github.event.release.tag_name }}"
|
|
|
|
""
|
|
|
|
"The download is available at:"
|
|
|
|
"- Spigot: <https://www.spigotmc.org/resources/77506/>"
|