Skip to content

Commit

Permalink
Improved discord notification
Browse files Browse the repository at this point in the history
  • Loading branch information
ZotyDev committed Jan 10, 2024
1 parent 964e2c4 commit 78d4ea8
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions .github/workflows/foundry_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,18 +98,15 @@ jobs:
}'
# Send a discord notification
- name: Discord Message Notify
uses: appleboy/discord-action@v1.0.0
- name: Discord Webhook Action
uses: tsickert/discord-webhook@v5.4.0
with:
webhook_id: ${{ secrets.DISCORD_ANNOUNCEMENT_WEBHOOK_ID }}
webhook_token: ${{ secrets.DISCORD_ANNOUNCEMENT_WEBHOOK_TOKEN }}
color: "#ff0088"
avatar_url: "https://media.discordapp.net/attachments/1075015857719230484/1194581653792759908/bot_avatar.png"
username: "Zoty"
message: |
MODULE UPDATED
Module : ${{ env.TITLE }}
Version : ${{ env.VERSION }}
Link : https://foundryvtt.com/packages/${{ env.MODULE }}
Repository : ${{ github.repository }}
Changelog : ${{ env.CHANGELOG }}
webhook-url: https://discord.com/api/webhooks/${{ secrets.DISCORD_ANNOUNCEMENT_WEBHOOK_ID }}/${{ secrets.DISCORD_ANNOUNCEMENT_WEBHOOK_TOKEN }}
content: "<@&1194266914126581820>"
username: "Module Update"
avatar-url: "https://media.discordapp.net/attachments/1075015857719230484/1194581653792759908/bot_avatar.png"
embed-title: "${{ env.TITLE }} - Version ${{ env.VERSION }}"
embed-uril: "https://foundryvtt.com/packages/${{ env.MODULE }}"
embed-description: "${{ env.CHANGELOG_TEXT }}"
embed-color: "#ff0088"

0 comments on commit 78d4ea8

Please sign in to comment.