Skip to content

Commit ad932e4

Browse files
authored
Checkout HEAD instead of Merge Commit for builds (OpenHands#7085)
1 parent 3278caf commit ad932e4

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/ghcr-build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ jobs:
4141
steps:
4242
- name: Checkout
4343
uses: actions/checkout@v4
44+
with:
45+
ref: ${{ github.event.pull_request.head.sha }}
4446
- name: Set up QEMU
4547
uses: docker/[email protected]
4648
with:
@@ -90,6 +92,8 @@ jobs:
9092
steps:
9193
- name: Checkout
9294
uses: actions/checkout@v4
95+
with:
96+
ref: ${{ github.event.pull_request.head.sha }}
9397
- name: Set up QEMU
9498
uses: docker/[email protected]
9599
with:
@@ -154,6 +158,8 @@ jobs:
154158
base_image: ['nikolaik']
155159
steps:
156160
- uses: actions/checkout@v4
161+
with:
162+
ref: ${{ github.event.pull_request.head.sha }}
157163
- name: Cache Poetry dependencies
158164
uses: actions/cache@v4
159165
with:

0 commit comments

Comments
 (0)