1
0
Fork 0

Specify the path to matrix-commander

This commit is contained in:
Luca Beltrame 2022-01-15 00:28:07 +01:00
parent 9f6b6518ce
commit 7719f0be31
Signed by: einar
GPG key ID: 4707F46E9EC72DEC

View file

@ -18,6 +18,7 @@ import sarge
API_URL = "https://invent.kde.org/api/v4/projects/" API_URL = "https://invent.kde.org/api/v4/projects/"
OBS_URL = "https://api.opensuse.org/trigger/runservice" OBS_URL = "https://api.opensuse.org/trigger/runservice"
MATRIX_COMMANDER = "/home/mocker/local-venv/bin/matrix-commander.py"
MESSAGE_TEMPLATE = f""" MESSAGE_TEMPLATE = f"""
### OBS package update complete ### OBS package update complete
@ -185,7 +186,7 @@ def notify_matrix(stats: Dict[str, Dict[str, int]]) -> None:
message = "\n".join(structure) message = "\n".join(structure)
cmd = ["matrix_commander.py", "--markdown", "-m", message] cmd = [MATRIX_COMMANDER, "--markdown", "-m", message]
logging.debug("Sending Matrix notification") logging.debug("Sending Matrix notification")
sarge.run(cmd) sarge.run(cmd)