@@ -24,14 +24,16 @@ permissions:
2424jobs :
2525 build_sdist :
2626 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+ )
3537 )
3638 name : Build sdist
3739 runs-on : ubuntu-latest
@@ -78,14 +80,16 @@ jobs:
7880
7981 build_wheels :
8082 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+ )
8993 )
9094 needs : build_sdist
9195 name : Build wheels on ${{ matrix.os }} for ${{ matrix.cibw_archs }}
@@ -183,7 +187,7 @@ jobs:
183187 if-no-files-found : error
184188
185189 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'
187191 name : Upload release to PyPI
188192 needs : [build_sdist, build_wheels]
189193 runs-on : ubuntu-latest
0 commit comments