From f946102d92c250d6482ff4a74c14cf50c06d7316 Mon Sep 17 00:00:00 2001 From: Refringe Date: Mon, 11 Mar 2024 11:53:47 -0400 Subject: [PATCH] Problem with quotes... Let's try a heredoc instead. --- .gitea/workflows/build.yaml | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 466c7ea..30404b5 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -504,21 +504,24 @@ jobs: curl -H "Content-Type: application/json" \ -X POST \ - -d '{ - "content": "✨ **New Build Available!** ✨ (THIS IS A TEST)", - "embeds": [ - { - "title": "'"$EMBED_TITLE"'", - "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"'", - "color": $EMBED_COLOR, - "footer": { - "text": "'"$FOOTER_MESSAGE"'" - }, - "timestamp": "'"$TIMESTAMP"'" - } - ], - "flags": 4100 - }' \ - $DISCORD_WEBHOOK_URL + $DISCORD_WEBHOOK_URL \ + -d @- <