Update notify.py to fix other CI oddities [skip deploy]
@@ -30,9 +30,8 @@ try:
NAME = sys.argv[2]
DEPLOYMENT_HOST = "https://pypi.org"
WEBHOOK_URL = os.environ["RELEASE_WEBHOOK"]
- ENVIRONMENT = os.environ["RELEASE_WEBHOOK_NAME"]
+ MESSAGE = os.environ["RELEASE_WEBHOOK_NAME"]
COLOUR = os.environ["RELEASE_WEBHOOK_COLOUR"]
- BRIEF = f"[{VERSION}] New {ENVIRONMENT} deployment!"
AUTHOR = os.environ["REPO_AUTHOR"]
requests.post(
@@ -40,10 +39,7 @@ try:
json = {
"embeds": [
{
- "title": f"{NAME} - {RELEASE_WEBHOOK_NAME}",
- "footer": {
- "text": BRIEF + "\n\n" + DESCRIPTION,
- },
+ "title": f"{NAME} - {MESSAGE}",
"color": int(COLOUR, 16),
"author": {"name": AUTHOR},
"description": f"[{NAME} v{VERSION}]({DEPLOYMENT_HOST}/project/{NAME}/{VERSION})"
