From 799f02066ac62e3f5f1f9b83cb9ffee09668a4b2 Mon Sep 17 00:00:00 2001 From: Giles Hutton Date: Wed, 17 Jan 2024 10:32:23 +0000 Subject: [PATCH] Only create s390x build VMs when theyre needed --- .github/workflows/collector-builder.yml | 4 +++- .github/workflows/collector-slim.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/collector-builder.yml b/.github/workflows/collector-builder.yml index fadd3a2637..c15a3bf0c6 100644 --- a/.github/workflows/collector-builder.yml +++ b/.github/workflows/collector-builder.yml @@ -98,7 +98,9 @@ jobs: job-tag: builder - name: Create Build VMs - if: matrix.arch == 's390x' + if: | + matrix.arch == 's390x' && + (github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'run-multiarch-builds')) run: | make -C "${{ github.workspace }}/ansible" create-build-vms diff --git a/.github/workflows/collector-slim.yml b/.github/workflows/collector-slim.yml index 3da3a571ac..0e733df9bc 100644 --- a/.github/workflows/collector-slim.yml +++ b/.github/workflows/collector-slim.yml @@ -73,7 +73,9 @@ jobs: job-tag: builder - name: Create Build VMs - if: matrix.arch == 's390x' + if: | + matrix.arch == 's390x' && + (github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'run-multiarch-builds')) run: | make -C "${{ github.workspace }}/ansible" create-build-vms