From 921890c6e9538a93ecbee8cfe8697b2d1b10cf20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Wed, 14 Aug 2024 12:31:34 +0200 Subject: [PATCH] Fix revision split --- webhooks/webhook.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webhooks/webhook.py b/webhooks/webhook.py index 353a5f2..a5b81c8 100755 --- a/webhooks/webhook.py +++ b/webhooks/webhook.py @@ -169,9 +169,9 @@ def bump_revision(request: Request, pr_infos: dict) -> HTTPResponse: manifest_file = (folder / "manifest.toml") manifest = tomlkit.load(manifest_file.open("r", encoding="utf-8")) - version, revision = manifest["version"].as_string().split("~") + version, revision = manifest["version"].as_string().split("~ynh") revision = str(int(revision) + 1) - manifest["version"] = "~".join([version, revision]) + manifest["version"] = "~ynh".join([version, revision]) tomlkit.dump(manifest, manifest_file.open("w", encoding="utf-8")) repo.git.add("manifest.toml")