gha: Do not run all the tests if only docs are updated

We should not go through the trouble of running all our tests on AKS /
Azure / baremetal machines in case a PR only changes our documentation.

Fixes: #7258

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
Fabiano Fidêncio 2023-07-06 21:35:14 +02:00
parent afbc1f94d7
commit 1776b18fa0

View File

@ -12,6 +12,8 @@ on:
- synchronize - synchronize
- reopened - reopened
- labeled - labeled
paths-ignore:
- 'docs/**'
jobs: jobs:
kata-containers-ci-on-push: kata-containers-ci-on-push:
if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }} if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }}