Skip to content

Commit 4c29b50

Browse files
committed
[build] Add extra code to specify workflow conditions
Even though it is redundant with the `on` section, it looks like this is the way to have the workflow properly run.
1 parent 60dfe60 commit 4c29b50

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/python_wheel_build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ on:
1515

1616
jobs:
1717
build-wheels:
18-
if: contains(github.event.pull_request.labels.*.name, 'build-python-wheels')
18+
if: |
19+
github.event_name == 'schedule' ||
20+
github.event_name == 'workflow_dispatch' ||
21+
contains(github.event.pull_request.labels.*.name, 'build-python-wheels')
1922
runs-on: ubuntu-latest
2023
strategy:
2124
matrix:

0 commit comments

Comments
 (0)