mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-12-11 09:24:19 -06:00
Fix cherry-pick job for unmerged PRs (#56510)
This commit is contained in:
parent
dcbfb0c75e
commit
8caae9394d
2
.github/workflows/create-cherry-pick-pr.yml
vendored
2
.github/workflows/create-cherry-pick-pr.yml
vendored
@ -66,7 +66,7 @@ jobs:
|
||||
await exec.exec("git", ["config", "user.name", "TypeScript Bot"]);
|
||||
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", ["cherry-pick", "-m", "-1", pr.data.merge_commit_sha]);
|
||||
await exec.exec("git", ["push", "--force", "--set-upstream", "origin", pickBranch]);
|
||||
|
||||
const existingPulls = await github.rest.pulls.list({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user