Skip to content

πŸ™Œ OpenHands: AI-Driven Development

Checkout HEAD instead of Merge Commit for builds (#7085)

mamoodiad932e45e86d
diff --git a/.github/workflows/ghcr-build.yml b/.github/workflows/ghcr-build.yml
index 4c981013c3..49adf14882 100644
--- a/.github/workflows/ghcr-build.yml
+++ b/.github/workflows/ghcr-build.yml
@@ -41,6 +41,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
+ with:
+ ref: ${{ github.event.pull_request.head.sha }}
- name: Set up QEMU
uses: docker/[email protected]
with:
@@ -90,6 +92,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
+ with:
+ ref: ${{ github.event.pull_request.head.sha }}
- name: Set up QEMU
uses: docker/[email protected]
with:
@@ -154,6 +158,8 @@ jobs:
base_image: ['nikolaik']
steps:
- uses: actions/checkout@v4
+ with:
+ ref: ${{ github.event.pull_request.head.sha }}
- name: Cache Poetry dependencies
uses: actions/cache@v4
with: