Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

extension_ci: Be more explicit with version bump (#46208)

Finn Evers4e28080d55e9
diff --git a/.github/workflows/extension_bump.yml b/.github/workflows/extension_bump.yml
index 0afbb3c6192..d87ec3c4d94 100644
--- a/.github/workflows/extension_bump.yml
+++ b/.github/workflows/extension_bump.yml
@@ -91,7 +91,11 @@ jobs:
BUMP_FILES+=("Cargo.toml")
fi
- bump2version --verbose --current-version "$OLD_VERSION" --no-configured-files ${{ inputs.bump-type }} "${BUMP_FILES[@]}"
+ bump2version \
+ --search "version = \"{current_version}"\" \
+ --replace "version = \"{new_version}"\" \
+ --current-version "$OLD_VERSION" \
+ --no-configured-files ${{ inputs.bump-type }} "${BUMP_FILES[@]}"
if [[ -f "Cargo.toml" ]]; then
cargo update --workspace
diff --git a/tooling/xtask/src/tasks/workflows/extension_bump.rs b/tooling/xtask/src/tasks/workflows/extension_bump.rs
index 00fa36860b9..f3f886d082b 100644
--- a/tooling/xtask/src/tasks/workflows/extension_bump.rs
+++ b/tooling/xtask/src/tasks/workflows/extension_bump.rs
@@ -261,7 +261,11 @@ fn bump_version(current_version: &JobOutput, bump_type: &WorkflowInput) -> (Step
BUMP_FILES+=("Cargo.toml")
fi
- bump2version --verbose --current-version "$OLD_VERSION" --no-configured-files {} "${{BUMP_FILES[@]}}"
+ bump2version \
+ --search "version = \"{{current_version}}"\" \
+ --replace "version = \"{{new_version}}"\" \
+ --current-version "$OLD_VERSION" \
+ --no-configured-files {} "${{BUMP_FILES[@]}}"
if [[ -f "Cargo.toml" ]]; then
cargo update --workspace