@@ -24,14 +24,16 @@ permissions:
24
24
jobs :
25
25
build_sdist :
26
26
if : >-
27
- github.event_name == 'push' ||
28
- github.event_name == 'pull_request' && (
29
- (
30
- github.event.action == 'labeled' &&
31
- github.event.label.name == 'CI: Run cibuildwheel'
32
- ) ||
33
- contains(github.event.pull_request.labels.*.name,
34
- 'CI: Run cibuildwheel')
27
+ github.repository == 'matplotlib/matplotlib' && (
28
+ github.event_name == 'push' ||
29
+ github.event_name == 'pull_request' && (
30
+ (
31
+ github.event.action == 'labeled' &&
32
+ github.event.label.name == 'CI: Run cibuildwheel'
33
+ ) ||
34
+ contains(github.event.pull_request.labels.*.name,
35
+ 'CI: Run cibuildwheel')
36
+ )
35
37
)
36
38
name : Build sdist
37
39
runs-on : ubuntu-latest
@@ -78,14 +80,16 @@ jobs:
78
80
79
81
build_wheels :
80
82
if : >-
81
- github.event_name == 'push' ||
82
- github.event_name == 'pull_request' && (
83
- (
84
- github.event.action == 'labeled' &&
85
- github.event.label.name == 'CI: Run cibuildwheel'
86
- ) ||
87
- contains(github.event.pull_request.labels.*.name,
88
- 'CI: Run cibuildwheel')
83
+ github.repository == 'matplotlib/matplotlib' && (
84
+ github.event_name == 'push' ||
85
+ github.event_name == 'pull_request' && (
86
+ (
87
+ github.event.action == 'labeled' &&
88
+ github.event.label.name == 'CI: Run cibuildwheel'
89
+ ) ||
90
+ contains(github.event.pull_request.labels.*.name,
91
+ 'CI: Run cibuildwheel')
92
+ )
89
93
)
90
94
needs : build_sdist
91
95
name : Build wheels on ${{ matrix.os }} for ${{ matrix.cibw_archs }}
@@ -183,7 +187,7 @@ jobs:
183
187
if-no-files-found : error
184
188
185
189
publish :
186
- if : github.event_name == 'push' && github.ref_type == 'tag'
190
+ if : github.repository == 'matplotlib/matplotlib' && github. event_name == 'push' && github.ref_type == 'tag'
187
191
name : Upload release to PyPI
188
192
needs : [build_sdist, build_wheels]
189
193
runs-on : ubuntu-latest
0 commit comments