github actions: Actually build the right commit

pull/312/head
Mike Lang 2 years ago
parent dd4bf320cd
commit e5b1a57f37

@ -40,6 +40,12 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: recursive submodules: recursive
# By default, for PR builds, Actions will check out a merge commit between the actual
# PR branch and the base branch (normally master). This isn't what we want as it means
# the actually pushed commit isn't getting built, so it can't then be used without being
# merged first. This makes testing much more difficult.
# This option makes it actually check out the PR's commit instead.
ref: ${{ github.event.pull_request.head.sha }}
- name: Log into ghcr.io - name: Log into ghcr.io
uses: docker/login-action@v1 uses: docker/login-action@v1

Loading…
Cancel
Save