Skip to content

Commit a76f4e5

Browse files
authored
Update discord-notify.yml
1 parent 7db43b9 commit a76f4e5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/discord-notify.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ jobs:
4242
4343
jq -n \
4444
--arg login "$(jq -r --arg fb "$ACTOR_FALLBACK" '(.author.username // "") | if length==0 then $fb else . end' <<< "$c")" \
45-
--arg short "$short" \
46-
--arg url "$url" \
4745
--arg msg "$msg" \
4846
--arg title "${repo_short} - ${BRANCH}" \
4947
--arg link "https://github.com/${REPO}/tree/${BRANCH}" \
48+
--arg short "$short" \
49+
--arg curlink "$url" \
5050
--arg iso "$(date -u -d "${ts:-$(date -Iseconds)}" +'%Y-%m-%dT%H:%M:%SZ')" \
5151
'{
5252
username: "GitHub",
@@ -60,8 +60,8 @@ jobs:
6060
url: ("https://github.com/" + $login),
6161
icon_url: ("https://avatars.githubusercontent.com/" + $login)
6262
},
63-
description: ("[`" + $short + "`](" + $url + ")\n" + $msg),
64-
footer: { text: ("[`" + $short + "`]" + $title) },
63+
description: $msg,
64+
footer: { text: ("[`" + $short + "`](" + $curlink + ")") },
6565
timestamp: $iso
6666
}]
6767
}' \

0 commit comments

Comments
 (0)