diff --git a/scripts/upload_dev.py b/scripts/upload_dev.py index f8d9cc593..6f7dba9c5 100644 --- a/scripts/upload_dev.py +++ b/scripts/upload_dev.py @@ -39,9 +39,7 @@ print("discord response:", resp.text) if args.serverupdate: for url in args.serverupdate: - with requests.post( - f"{os.environ['ACTIONS_ID_TOKEN_REQUEST_URL']}&audience=https://mc.pswg.dev" - ) as resp: + with requests.post(f"{os.environ['ACTIONS_ID_TOKEN_REQUEST_URL']}&audience=https://mc.pswg.dev", headers={"Authorization": "Bearer {os.environ['ACTIONS_ID_TOKEN_REQUEST_TOKEN']}"}) as resp: resp.raise_for_status() token = resp.text with open(file, "rb") as fp: