mirror of
https://github.com/sp-tarkov/build.git
synced 2025-02-13 05:10:47 -05:00
Slow down... Just build the JSON so we can validate.
This commit is contained in:
parent
11b0b2cee6
commit
7f849a17fc
@ -502,31 +502,31 @@ jobs:
|
|||||||
EMBED_DESCRIPTION="A new stable release build is now ready for download. 7-Zip is *required* to extract the release."
|
EMBED_DESCRIPTION="A new stable release build is now ready for download. 7-Zip is *required* to extract the release."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
curl -H "Content-Type: application/json" \
|
jq -n \
|
||||||
-X POST \
|
--arg EMBED_TITLE "$EMBED_TITLE" \
|
||||||
"$DISCORD_WEBHOOK_URL" \
|
--arg EMBED_DESCRIPTION "$EMBED_DESCRIPTION" \
|
||||||
--data "$(jq -n --arg EMBED_TITLE "$EMBED_TITLE" \
|
--arg BUILD_NAME "$BUILD_NAME" \
|
||||||
--arg EMBED_DESCRIPTION "$EMBED_DESCRIPTION" \
|
--arg DOWNLOAD_LINK "$DOWNLOAD_LINK" \
|
||||||
--arg BUILD_NAME "$BUILD_NAME" \
|
--arg TORRENT_LINK "$TORRENT_LINK" \
|
||||||
--arg DOWNLOAD_LINK "$DOWNLOAD_LINK" \
|
--arg MAGNET_LINK "$MAGNET_LINK" \
|
||||||
--arg TORRENT_LINK "$TORRENT_LINK" \
|
--argjson EMBED_COLOR $EMBED_COLOR \
|
||||||
--arg MAGNET_LINK "$MAGNET_LINK" \
|
--arg FOOTER_MESSAGE "$FOOTER_MESSAGE" \
|
||||||
--argjson EMBED_COLOR $EMBED_COLOR \
|
--arg TIMESTAMP "$TIMESTAMP" \
|
||||||
--arg FOOTER_MESSAGE "$FOOTER_MESSAGE" \
|
'{
|
||||||
--arg TIMESTAMP "$TIMESTAMP" \
|
"username": "BuildBot",
|
||||||
'{
|
"avatar_url": "https://i.imgur.com/28JJJec.png",
|
||||||
username: "BuildBot",
|
"content": "✨ **New Build Available!** ✨ (THIS IS A TEST)",
|
||||||
avatar_url: "https://i.imgur.com/28JJJec.png",
|
"embeds": [
|
||||||
content: "✨ **New Build Available!** ✨ (THIS IS A TEST)",
|
{
|
||||||
embeds: [
|
"title": $EMBED_TITLE,
|
||||||
{
|
"description": $EMBED_DESCRIPTION,
|
||||||
title: $EMBED_TITLE,
|
"url": $DOWNLOAD_LINK,
|
||||||
description: ($EMBED_DESCRIPTION + "\n\n**Build Name:**\n" + $BUILD_NAME + "\n\n🚀 **Primary Download Link:**\n" + $DOWNLOAD_LINK + "\n\n🔗 **Torrent Link:**\n" + $TORRENT_LINK + "\n\n🧲 **Torrent Magnet Link:**\n" + $MAGNET_LINK + "\n\n**Mirrors:**\n\n🚧 In order to conserve bandwidth, please consider using the *above* methods to download the release. If you have issues using those methods, you\'re free to download using any of the following HTTP mirrors.\n\n🚧 While the links *below* are not secret, **do not advertise them**. The primary MEGA link or torrent should be used to advertise any downloads.\n\n" + $DOWNLOAD_LINK),
|
"color": $EMBED_COLOR,
|
||||||
url: $DOWNLOAD_LINK,
|
"footer": {
|
||||||
color: $EMBED_COLOR,
|
"text": $FOOTER_MESSAGE
|
||||||
footer: { text: $FOOTER_MESSAGE },
|
},
|
||||||
timestamp: $TIMESTAMP
|
"timestamp": $TIMESTAMP
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}')"
|
}'
|
||||||
shell: bash
|
shell: bash
|
||||||
|
Loading…
x
Reference in New Issue
Block a user