From d5104876e48f32f3dc74f33971eebc383289428f Mon Sep 17 00:00:00 2001 From: Panakotta00 Date: Mon, 28 Oct 2024 21:36:50 +0100 Subject: [PATCH] fix: ci: some discord release message fixes --- .github/workflows/deploy-to-smr.yml | 2 +- .github/workflows/send-discord-release.yml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-to-smr.yml b/.github/workflows/deploy-to-smr.yml index a58291f03..62c65a156 100644 --- a/.github/workflows/deploy-to-smr.yml +++ b/.github/workflows/deploy-to-smr.yml @@ -57,7 +57,7 @@ jobs: body: '{getModByReference(modReference:"FicsItNetworks"){versions(filter:{order_by:created_at}){approved}}}' }) if (!response.ok) { - console.log(`Checking Fetch: Response is not OK: ${response.status}`; + console.log(`Checking Fetch: Response is not OK: ${response.status}`); } else { const json = await response.json(); let mod = json.data.getModByReference[0]; diff --git a/.github/workflows/send-discord-release.yml b/.github/workflows/send-discord-release.yml index 7d7ce9480..a271fa675 100644 --- a/.github/workflows/send-discord-release.yml +++ b/.github/workflows/send-discord-release.yml @@ -47,7 +47,8 @@ jobs: script: | let body = process.env.body; let version = process.env.version; - let split = body.split(/_(.*)/s); + console.log(body); + let split = body.split(/\n(.*)/s); split.splice(1, 0, `_(${version})_`); split.push("\n\n<@&1018202499678736446>"); return split.join("");