Skip to content

Commit 2447b85

Browse files
committed
Ensure PR builds checkout the correct commit
1 parent d455c87 commit 2447b85

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.ci/jobs.t/elastic+elasticsearch+pull-request+docs-check.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
workspace: "/dev/shm/elastic+elasticsearch+%BRANCH%+pull-request+docs-check"
77
scm:
88
- git:
9-
refspec: "+refs/pull/${{ghprbPullId}}/*:refs/remotes/origin/pr/${{ghprbPullId}}/*"
10-
branch: "${ghprbActualCommit}"
9+
refspec: "+refs/pull/${ghprbPullId}/*:refs/remotes/origin/pr/${ghprbPullId}/*"
10+
branches:
11+
- "${ghprbActualCommit}"
1112
triggers:
1213
- github-pull-request:
1314
org-list:

.ci/jobs.t/elastic+elasticsearch+pull-request+precommit.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
workspace: "/dev/shm/elastic+elasticsearch+%BRANCH%+pull-request+precommit"
77
scm:
88
- git:
9-
refspec: "+refs/pull/${{ghprbPullId}}/*:refs/remotes/origin/pr/${{ghprbPullId}}/*"
10-
branch: "${ghprbActualCommit}"
9+
refspec: "+refs/pull/${ghprbPullId}/*:refs/remotes/origin/pr/${ghprbPullId}/*"
10+
branches:
11+
- "${ghprbActualCommit}"
1112
triggers:
1213
- github-pull-request:
1314
org-list:

.ci/templates.t/pull-request-gradle-unix.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
workspace: "/dev/shm/elastic+elasticsearch+%BRANCH%+pull-request+{pr-job}"
77
scm:
88
- git:
9-
refspec: "+refs/pull/${{ghprbPullId}}/*:refs/remotes/origin/pr/${{ghprbPullId}}/*"
10-
branch: "${ghprbActualCommit}"
9+
refspec: "+refs/pull/${ghprbPullId}/*:refs/remotes/origin/pr/${ghprbPullId}/*"
10+
branches:
11+
- "${ghprbActualCommit}"
1112
triggers:
1213
- github-pull-request:
1314
org-list:

0 commit comments

Comments
 (0)