Fix revision split
This commit is contained in:
parent
4131b654ab
commit
921890c6e9
1 changed files with 2 additions and 2 deletions
|
@ -169,9 +169,9 @@ def bump_revision(request: Request, pr_infos: dict) -> HTTPResponse:
|
||||||
|
|
||||||
manifest_file = (folder / "manifest.toml")
|
manifest_file = (folder / "manifest.toml")
|
||||||
manifest = tomlkit.load(manifest_file.open("r", encoding="utf-8"))
|
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)
|
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"))
|
tomlkit.dump(manifest, manifest_file.open("w", encoding="utf-8"))
|
||||||
|
|
||||||
repo.git.add("manifest.toml")
|
repo.git.add("manifest.toml")
|
||||||
|
|
Loading…
Reference in a new issue