File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,24 +11,27 @@ jobs:
1111 - name : Send Discord Embed via Curl
1212 run : |
1313 PAYLOAD=$(jq -n --arg author "${{ github.actor }}" \
14- --arg message "${{ github.event.head_commit.message }}" \
15- --arg url "${{ github.event.head_commit.url }}" \
16- --arg timestamp "${{ github.event.head_commit.timestamp }}" \
14+ --arg author_avatar "${{ github.actor.avatar.url }}" \
15+ --arg message "${{ github.event.head_commit.message }}" \
16+ --arg url "${{ github.event.head_commit.url }}" \
17+ --arg timestamp "${{ github.event.head_commit.timestamp }}" \
18+ --arg version "${{ secrets.VERSION }}" \
1719 '{
18- embeds: [
20+ " embeds" : [
1921 {
2022 "id": 120388608,
21- "description": "__**New Update**__\nA new update has been released!\n**V"+ $secrets. version + **\n$message\n*[View Full Changelog](\( $url))*" ,
23+ "description": ( "__**New Update**__\nA new update has been released!\n**V" + $version + " **\n" + $message + " \n*[View Full Changelog](" + $url + ")*") ,
2224 "fields": [],
2325 "color": 3101622,
2426 "footer": {
25- "icon_url": author.avatar ,
27+ "icon_url": $author_avatar ,
2628 "text": $author
27- }
29+ },
30+ "timestamp": $timestamp
2831 }
2932 ]
3033 }')
3134
3235 curl -X POST -H "Content-Type: application/json" \
3336 -d "$PAYLOAD" \
34- ${{ secrets.DISCORD_WEBHOOK }}
37+ " ${{ secrets.DISCORD_WEBHOOK }}"
You can’t perform that action at this time.
0 commit comments