Skip to content

Commit 5f5ed0f

Browse files
authored
Fix branch name in new cherry pick workflow (#56494)
1 parent b8bfb01 commit 5f5ed0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/create-cherry-pick-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
6363
const title = `🤖 Pick PR #${PR} (${pr.data.title.substring(0, 35)}${pr.data.title.length > 35 ? "..." : ""}) into ${TARGET_BRANCH}`;
6464
65-
await exec.exec("git", ["switch", "--detach", TARGET_BRANCH]);
65+
await exec.exec("git", ["switch", "--detach", `origin/${TARGET_BRANCH}`]);
6666
await exec.exec("git", ["switch", "-c", pickBranch]);
6767
await exec.exec("git", ["cherry-pick", pr.data.merge_commit_sha]);
6868
await exec.exec("git", ["push", "--force", "--set-upstream", "origin", pickBranch]);

0 commit comments

Comments
 (0)