mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-10-21 20:08:54 +00:00
gha: ci-on-push: Adapt chained jobs to workflow_run
As we're using the `workflow_run` event, the checkout action would pull the **current target branch** instead of the PR one. Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
6
.github/workflows/run-k8s-tests-on-aks.yaml
vendored
6
.github/workflows/run-k8s-tests-on-aks.yaml
vendored
@@ -2,6 +2,10 @@ name: CI | Run kubernetes tests on AKS
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
checkout-ref:
|
||||
required: false
|
||||
type: string
|
||||
default: ${{ github.sha }}
|
||||
registry:
|
||||
required: true
|
||||
type: string
|
||||
@@ -35,6 +39,8 @@ jobs:
|
||||
needs: create-aks
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ inputs.checkout-ref }}
|
||||
- name: Install `bats`
|
||||
run: |
|
||||
sudo apt-get update
|
||||
|
Reference in New Issue
Block a user