Skip to content

Commit 0f23c17

Browse files
dstansbymeeseeksmachine
authored andcommitted
Backport PR #22549: Really fix wheel building on CI
1 parent 3937ec7 commit 0f23c17

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/cibuildwheel.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ on:
2020
jobs:
2121
build_wheels:
2222
if: |
23-
github.event.action == 'push' ||
24-
(
25-
github.event.action == 'labeled' &&
26-
github.event.label.name == 'Run cibuildwheel'
27-
) ||
28-
contains(github.event.pull_request.labels.*.name, 'Run cibuildwheel')
23+
github.event_name == 'push' ||
24+
github.event_name == 'pull_request' && (
25+
(
26+
github.event.action == 'labeled' &&
27+
github.event.label.name == 'Run cibuildwheel'
28+
) ||
29+
contains(github.event.pull_request.labels.*.name, 'Run cibuildwheel')
30+
)
2931
name: Build wheels on ${{ matrix.os }}
3032
runs-on: ${{ matrix.os }}
3133
env:

0 commit comments

Comments
 (0)