mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Fix branch name in new cherry pick workflow (#56494)
This commit is contained in:
1 parent
b8bfb0199e
commit
5f5ed0f487
1 file changed
+1
-1
@@ -62,7 +62,7 @@ jobs:
|
||||
|
||||
const title = `🤖 Pick PR #${PR} (${pr.data.title.substring(0, 35)}${pr.data.title.length > 35 ? "..." : ""}) into ${TARGET_BRANCH}`;
|
||||
|
||||
await exec.exec("git", ["switch", "--detach", TARGET_BRANCH]);
|
||||
await exec.exec("git", ["switch", "--detach", `origin/${TARGET_BRANCH}`]);
|
||||
await exec.exec("git", ["switch", "-c", pickBranch]);
|
||||
await exec.exec("git", ["cherry-pick", pr.data.merge_commit_sha]);
|
||||
await exec.exec("git", ["push", "--force", "--set-upstream", "origin", pickBranch]);
|
||||
|
||||
Reference in new issue
Block a user