Fix branch name in new cherry pick workflow (#56494)

This commit is contained in:
Jake Bailey
2023-11-21 15:24:55 -08:00
committed by GitHub
parent b8bfb0199e
commit 5f5ed0f487

View File

@@ -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]);