Skip to content

Commit 964e2c4

Browse files
committed
Better discord notification
1 parent edbdc57 commit 964e2c4

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/foundry_release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@ jobs:
2525
exit 1
2626
fi
2727
28-
# Get the module version and name
28+
# Get the module version and title
2929
- name: Get Module Version
3030
run: |
3131
VERSION=$(jq -r '.version' module.json)
3232
echo "VERSION=$VERSION" >> $GITHUB_ENV
33+
TITLE=$(jq -r '.title' module.json)
34+
echo "TITLE=$TITLE" >> $GITHUB_ENV
3335
3436
# Check if tag version and 'module.json' version are the same
3537
- name: Check if 'module.json' is valid
@@ -104,4 +106,10 @@ jobs:
104106
color: "#ff0088"
105107
avatar_url: "https://media.discordapp.net/attachments/1075015857719230484/1194581653792759908/bot_avatar.png"
106108
username: "Zoty"
107-
message: "${{ github.repository }} got a new release: ${{ env.VERSION }}"
109+
message: |
110+
MODULE UPDATED
111+
Module : ${{ env.TITLE }}
112+
Version : ${{ env.VERSION }}
113+
Link : https://foundryvtt.com/packages/${{ env.MODULE }}
114+
Repository : ${{ github.repository }}
115+
Changelog : ${{ env.CHANGELOG }}

0 commit comments

Comments
 (0)