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

Finn Evers created

I assumed the action would pick up the branch from the context - turns
out it did not.

Release Notes:

- N/A

Change summary

.github/workflows/bump_patch_version.yml                | 1 +
tooling/xtask/src/tasks/workflows/bump_patch_version.rs | 9 +++++++--
2 files changed, 8 insertions(+), 2 deletions(-)

Detailed changes

.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

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(