Add a button to go to the github page

This commit is contained in:
2024-03-01 19:30:02 +01:00
parent 7a5070443b
commit 6c714abedd

View File

@@ -86,7 +86,12 @@ def send_to_ntfy(releases, auth, url):
(app_name, version_number, changelog))
conn.commit()
headers = {"Authorization": f"Basic {auth}", "Content-Type": "text/plain"}
headers = {
"Authorization": f"Basic {auth}",
"Title": f"New version for {app_name}",
"Priority": "urgent",
"Content-Type": "text/plain",
"Actions": f"view, Update {app_name}, {app_url}, clear=true"}
response = requests.post(f"{url}", headers=headers, data=message)
if response.status_code == 200:
logger.info(f"Message envoyé à Ntfy pour {app_name}")