Skip to content

Commit 02074f9

Browse files
committed
[🍒][ci] Diff against origin/BASE-BRANCH
Otherwise, when the base branch is not something that the CI runner has checked out, that reference to e.g. release/18.x is ambiguous. (cherry picked from commit 5aad789)
1 parent fce5c17 commit 02074f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.ci/generate-buildkite-pipeline-premerge

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ set -o pipefail
2929
# Fetch origin to have an up to date merge base for the diff.
3030
git fetch origin
3131
# List of files affected by this commit
32-
: ${MODIFIED_FILES:=$(git diff --name-only ${BUILDKITE_PULL_REQUEST_BASE_BRANCH}...HEAD)}
32+
: ${MODIFIED_FILES:=$(git diff --name-only origin/${BUILDKITE_PULL_REQUEST_BASE_BRANCH}...HEAD)}
3333
# Filter rules for generic windows tests
3434
: ${WINDOWS_AGENTS:='{"queue": "windows"}'}
3535
# Filter rules for generic linux tests

0 commit comments

Comments
 (0)