0
0
mirror of https://github.com/sp-tarkov/build.git synced 2025-02-13 02:10:46 -05:00

Problem with quotes... Let's try a heredoc instead.

This commit is contained in:
Refringe 2024-03-11 11:53:47 -04:00
parent 11527decc5
commit f946102d92
Signed by: Refringe
GPG Key ID: 7715B85B4A6306ED

View File

@ -504,21 +504,24 @@ jobs:
curl -H "Content-Type: application/json" \ curl -H "Content-Type: application/json" \
-X POST \ -X POST \
-d '{ $DISCORD_WEBHOOK_URL \
"content": "✨ **New Build Available!** ✨ (THIS IS A TEST)", -d @- <<EOF
"embeds": [ {
{ "username": "BuildBot",
"title": "'"$EMBED_TITLE"'", "avatar_url": "https://i.imgur.com/28JJJec.png",
"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"'", "content": "✨ **New Build Available!** ✨ (THIS IS A TEST)",
"url": "'"$DOWNLOAD_LINK"'", "embeds": [
"color": $EMBED_COLOR, {
"footer": { "title": "$EMBED_TITLE",
"text": "'"$FOOTER_MESSAGE"'" "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",
}, "url": "$DOWNLOAD_LINK",
"timestamp": "'"$TIMESTAMP"'" "color": $EMBED_COLOR,
} "footer": {
], "text": "$FOOTER_MESSAGE"
"flags": 4100 },
}' \ "timestamp": "$TIMESTAMP"
$DISCORD_WEBHOOK_URL }
]
}
EOF
shell: bash shell: bash