Skip to content

Commit

Permalink
build script update
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunkLightTuna committed Feb 2, 2024
1 parent dfcf18b commit 505eb3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/foundry_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,15 @@ 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',
headers={
'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:
Expand Down

0 comments on commit 505eb3c

Please sign in to comment.