From 4e28080d55e9f3814e8bc9c08bc3fa041472e8f9 Mon Sep 17 00:00:00 2001 From: Finn Evers Date: Wed, 7 Jan 2026 01:22:44 +0100 Subject: [PATCH] extension_ci: Be more explicit with version bump (#46208) Closes https://github.com/zed-industries/zed/issues/46175 I had very much hoped for bump2version to do this by default, well, left here disappointed I suppose Release Notes: - N/A --- .github/workflows/extension_bump.yml | 6 +++++- tooling/xtask/src/tasks/workflows/extension_bump.rs | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/extension_bump.yml b/.github/workflows/extension_bump.yml index 0afbb3c619..d87ec3c4d9 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 00fa36860b..f3f886d082 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