From 2c602e1aeb19fba819b6e749bbf17fbb6a76a9f2 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Thu, 24 Feb 2022 01:05:44 -0500 Subject: [PATCH] Really fix wheel building on CI I had the wrong condition in #22375, so that they were still not triggered on push. --- .github/workflows/cibuildwheel.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cibuildwheel.yml b/.github/workflows/cibuildwheel.yml index af752c86f55c..c49eeefe4af0 100644 --- a/.github/workflows/cibuildwheel.yml +++ b/.github/workflows/cibuildwheel.yml @@ -20,12 +20,14 @@ on: jobs: build_wheels: if: | - github.event.action == 'push' || - ( - github.event.action == 'labeled' && - github.event.label.name == 'Run cibuildwheel' - ) || - contains(github.event.pull_request.labels.*.name, 'Run cibuildwheel') + github.event_name == 'push' || + github.event_name == 'pull_request' && ( + ( + github.event.action == 'labeled' && + github.event.label.name == 'Run cibuildwheel' + ) || + contains(github.event.pull_request.labels.*.name, 'Run cibuildwheel') + ) name: Build wheels on ${{ matrix.os }} runs-on: ${{ matrix.os }} env: