Skip to content

Commit

Permalink
Only create s390x build VMs when theyre needed (#1506)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stringy authored Jan 23, 2024
1 parent 1dd2900 commit c8fa07a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/collector-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/collector-slim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c8fa07a

Please sign in to comment.