mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-22 13:38:26 +00:00
workflows: Use base instead of head ref for kata-deploy-test
Although I've done tests on my own fork using `head_ref` and those worked, it seems those only worked as the PR was coming from exactly the same repository as the target one. Let's switch to base_ref, instead, which we for sure have as part of our repo. The downside of this is that we run the test with the last merged PR, rather than with the "to-be-approved" PR, but that's a limitation we've always had. Fixes: #3482 Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
parent
1a59c5743e
commit
3924470c8f
6
.github/workflows/kata-deploy-test.yaml
vendored
6
.github/workflows/kata-deploy-test.yaml
vendored
@ -59,7 +59,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
ref: ${{ steps.refs.outputs.head_ref }}
|
ref: ${{ steps.refs.outputs.base_ref }}
|
||||||
- name: Install docker
|
- name: Install docker
|
||||||
run: |
|
run: |
|
||||||
curl -fsSL https://test.docker.com -o test-docker.sh
|
curl -fsSL https://test.docker.com -o test-docker.sh
|
||||||
@ -96,7 +96,7 @@ jobs:
|
|||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
ref: ${{ steps.refs.outputs.head_ref }}
|
ref: ${{ steps.refs.outputs.base_ref }}
|
||||||
- name: get-artifacts
|
- name: get-artifacts
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
@ -125,7 +125,7 @@ jobs:
|
|||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
ref: ${{ steps.refs.outputs.head_ref }}
|
ref: ${{ steps.refs.outputs.base_ref }}
|
||||||
- name: get-kata-tarball
|
- name: get-kata-tarball
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user