Skip to content

Commit

Permalink
[buildkite] Fix backport PR pipeline generation (#100427) (#100430)
Browse files Browse the repository at this point in the history
(cherry picked from commit f4d53bc)

# Conflicts:
#	.buildkite/scripts/pull-request/pipeline.ts
  • Loading branch information
brianseeders committed Oct 6, 2023
1 parent 774e3bf commit 71f5f2d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .buildkite/scripts/pull-request/pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,10 @@ export const generatePipelines = (
.filter((x) => x);

if (!changedFiles?.length) {
const mergeBase = execSync(`git merge-base origin/${process.env["GITHUB_PR_TARGET_BRANCH"]} HEAD`, {
cwd: PROJECT_ROOT,
})
const mergeBase = execSync(
`git fetch origin ${process.env["GITHUB_PR_TARGET_BRANCH"]}; git merge-base origin/${process.env["GITHUB_PR_TARGET_BRANCH"]} HEAD`,
{ cwd: PROJECT_ROOT }
)
.toString()
.trim();

Expand Down

0 comments on commit 71f5f2d

Please sign in to comment.