mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-19 20:37:00 -05:00
Fix branch name in new cherry pick workflow (#56494)
This commit is contained in:
2
.github/workflows/create-cherry-pick-pr.yml
vendored
2
.github/workflows/create-cherry-pick-pr.yml
vendored
@@ -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