Skip to content

Commit 18170d6

Browse files
ci: add label for running all builds on a pull request (#4833)
1 parent 0e793e3 commit 18170d6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/pypi_upload.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ jobs:
5353
pipx install cibuildwheel==3.2.1
5454
pipx install pypyp==1.3.0
5555
- name: generate matrix
56-
if: github.event_name != 'pull_request'
56+
if: |
57+
github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'ci: build all wheels')
5758
run: |
5859
{
5960
cibuildwheel --print-build-identifiers --platform linux \
@@ -68,7 +69,8 @@ jobs:
6869
CIBW_ARCHS_MACOS: x86_64 arm64
6970
CIBW_ARCHS_WINDOWS: AMD64
7071
- name: generate matrix (PR)
71-
if: github.event_name == 'pull_request'
72+
if: |
73+
github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'ci: build all wheels')
7274
run: |
7375
{
7476
cibuildwheel --print-build-identifiers --platform linux \

0 commit comments

Comments
 (0)