From aaa9dd4e26627d2bbac70b32e245e68fff8dcab2 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 4 Sep 2025 22:21:19 +0200 Subject: [PATCH] gha: skip "vm" checks if `ci/validate-only` label is set commit f0c069ffc9b51d698ff7a0694e985f424e7e0051 added support for a `ci/validate-only` label to skip tests and only run the validation checks. Commit 09ecd74cf3459f86768fb60f27923d1f33991d24 was 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/workflows/.vm.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/.vm.yml b/.github/workflows/.vm.yml index db4fad76d3..97f5ef7b9e 100644 --- a/.github/workflows/.vm.yml +++ b/.github/workflows/.vm.yml @@ -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: