mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Ensure buildah job checks out pull request changes (#1656)
With the change to using pull_request_target, need to ensure the buildah job also checks out the PR contents.
This commit is contained in:
parent
1ff551e1a5
commit
87131a171f
8
.github/workflows/docker-image.yml
vendored
8
.github/workflows/docker-image.yml
vendored
@ -27,9 +27,17 @@ jobs:
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
if: ${{ ! startsWith(github.event_name, 'pull_request') }}
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
-
|
||||
if: startsWith(github.event_name, 'pull_request')
|
||||
name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
-
|
||||
name: Build with buildah
|
||||
run: buildah bud .
|
||||
|
Loading…
Reference in New Issue
Block a user