From c8fa07a4d97661e2619c086a5b6a467589b1e9c5 Mon Sep 17 00:00:00 2001 From: Giles Hutton Date: Tue, 23 Jan 2024 10:14:45 +0000 Subject: [PATCH] Only create s390x build VMs when theyre needed (#1506) --- .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