Skip to content

Commit fb4f93d

Browse files
committed
fix cargo.toml version
1 parent ef1b4b4 commit fb4f93d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/scripts/edit-cargo-toml-version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def append_label_to_cargo_toml_version(cargo_toml_path, label: str, dry_run: boo
2020
print("No package section (probably a workspace file), skipping this Cargo.toml")
2121
return
2222

23-
new_version = f"{cargo_toml['package']['version'].split('-', 1)[0]}-{label}"
23+
new_version = f"{cargo_toml['package']['version'].split('+', 1)[0]}+{label}"
2424
print(f"{cargo_toml_path} new version: {new_version}")
2525

2626
if not dry_run:

0 commit comments

Comments
 (0)