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.

ci: Fix target branch for Zippy version bumps (#54346)

Finn Evers261c07358e82
diff --git a/.github/workflows/bump_patch_version.yml b/.github/workflows/bump_patch_version.yml
index f8a806b88f0..60584cf4346 100644
--- a/.github/workflows/bump_patch_version.yml
+++ b/.github/workflows/bump_patch_version.yml
@@ -51,6 +51,7 @@ jobs:
uses: IAreKyleW00t/verified-bot-commit@126a6a11889ab05bcff72ec2403c326cd249b84c
with:
message: Bump to ${{ steps.bump-version.outputs.version }} for @${{ github.actor }}
+ ref: refs/heads/${{ inputs.branch }}
files: '**'
token: ${{ steps.generate-token.outputs.token }}
- name: bump_patch_version::run_bump_patch_version::create_version_tag
diff --git a/tooling/xtask/src/tasks/workflows/bump_patch_version.rs b/tooling/xtask/src/tasks/workflows/bump_patch_version.rs
index 46c7088ae8f..bf1df69bcf3 100644
--- a/tooling/xtask/src/tasks/workflows/bump_patch_version.rs
+++ b/tooling/xtask/src/tasks/workflows/bump_patch_version.rs
@@ -52,7 +52,11 @@ fn run_bump_patch_version(branch: &WorkflowInput) -> steps::NamedJob {
.id("bump-version")
}
- fn commit_changes(version: &StepOutput, token: &StepOutput) -> Step<Use> {
+ fn commit_changes(
+ version: &StepOutput,
+ token: &StepOutput,
+ branch: &WorkflowInput,
+ ) -> Step<Use> {
named::uses(
"IAreKyleW00t",
"verified-bot-commit",
@@ -63,6 +67,7 @@ fn run_bump_patch_version(branch: &WorkflowInput) -> steps::NamedJob {
"message",
format!("Bump to {version} for @${{{{ github.actor }}}}"),
))
+ .add_with(("ref", format!("refs/heads/{branch}")))
.add_with(("files", "**"))
.add_with(("token", token.to_string()))
}
@@ -99,7 +104,7 @@ fn run_bump_patch_version(branch: &WorkflowInput) -> steps::NamedJob {
let bump_version_step = bump_version();
let version = StepOutput::new(&bump_version_step, "version");
let tag_suffix = StepOutput::new(&bump_version_step, "tag_suffix");
- let commit_step = commit_changes(&version, &token);
+ let commit_step = commit_changes(&version, &token, branch);
let commit_sha = StepOutput::new_unchecked(&commit_step, "commit");
named::job(