From 505eb3c25d85099b1eb92e800dbbe72b30f14d8e Mon Sep 17 00:00:00 2001 From: Christopher Renaud Oelerich Date: Fri, 2 Feb 2024 03:31:47 -0600 Subject: [PATCH] build script update --- .github/workflows/foundry_release.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/foundry_release.py b/.github/workflows/foundry_release.py index c66376f..18fb0ec 100644 --- a/.github/workflows/foundry_release.py +++ b/.github/workflows/foundry_release.py @@ -127,6 +127,7 @@ def post_packages_oronder_edit(csrf_token, csrf_middleware_token, session_id, de def post_update_to_discord(version) -> None: + deduped_changes = '\n'.join(dict.fromkeys(CHANGES.split('\n'))) conn = http.client.HTTPSConnection("api.oronder.com") conn.request( "POST", '/update_discord', @@ -134,7 +135,7 @@ def post_update_to_discord(version) -> None: 'Content-Type': 'application/json', 'Authorization': UPDATE_DISCORD_KEY }, - body=json.dumps({'version': version, 'changes': CHANGES}) + body=json.dumps({'version': version, 'changes': deduped_changes}) ) response = conn.getresponse() if response.status != 200: