mirror of
https://github.com/moby/moby.git
synced 2026-01-11 10:41:43 +00:00
gha: skip "vm" checks if ci/validate-only label is set
commitf0c069ffc9added support for a `ci/validate-only` label to skip tests and only run the validation checks. Commit09ecd74cf3was merged later, but was authored before that feature was merged, so did not account for the label, so the "vm" checks would always run. This applies the additional conditions to skip the "vm" checks if the `ci/validate-only` label is set. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
3
.github/workflows/.vm.yml
vendored
3
.github/workflows/.vm.yml
vendored
@@ -28,6 +28,7 @@ jobs:
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 60
|
||||
continue-on-error: ${{ github.event_name != 'pull_request' }}
|
||||
if: ${{ github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'ci/validate-only') }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
@@ -174,7 +175,7 @@ jobs:
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 10
|
||||
continue-on-error: ${{ github.event_name != 'pull_request' }}
|
||||
if: always()
|
||||
if: always() && (github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'ci/validate-only'))
|
||||
needs:
|
||||
- integration
|
||||
steps:
|
||||
|
||||
Reference in New Issue
Block a user