Skip to content

Commit beb5dda

Browse files
authored
ci: fix conditions (#679)
2 parents 1d7ea51 + 56394a5 commit beb5dda

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/ci_python.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ jobs:
138138
build-wheel-macos:
139139
# Build wheels in the merge queue. We can either duplicate this in `main`
140140
# or retrieve the built wheels.
141-
if: github.event == 'merge_group'
141+
if: github.event_name == 'merge_group'
142142
runs-on: macos-latest
143143
strategy:
144144
matrix:
@@ -197,7 +197,7 @@ jobs:
197197
build-wheel-windows:
198198
# Build wheels in the merge queue. We can either duplicate this in `main`
199199
# or retrieve the built wheels.
200-
if: github.event == 'merge_group'
200+
if: github.event_name == 'merge_group'
201201
runs-on: windows-latest
202202
steps:
203203
- uses: actions/checkout@v3
@@ -246,8 +246,8 @@ jobs:
246246
# Build wheels in the merge queue. We also do this on push to `main`
247247
# because it builds the docs which we'll release.
248248
if: |
249-
github.event == 'merge_group' ||
250-
(github.event == 'push' && github.ref == 'refs/heads/main')
249+
github.event_name == 'merge_group' ||
250+
(github.event_name == 'push' && github.ref == 'refs/heads/main')
251251
runs-on: ubuntu-latest
252252
strategy:
253253
matrix:
@@ -309,7 +309,7 @@ jobs:
309309
sdist:
310310
# Build wheels in the merge queue. We can either duplicate this in `main`
311311
# or retrieve the built wheels.
312-
if: github.event == 'merge_group'
312+
if: github.event_name == 'merge_group'
313313
runs-on: ubuntu-latest
314314
steps:
315315
- uses: actions/checkout@v3
@@ -327,7 +327,7 @@ jobs:
327327

328328
docs-deploy:
329329
# Deploy docs on push to main.
330-
if: github.event == 'push' && github.ref == 'refs/heads/main'
330+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
331331
# Deployment job
332332
environment:
333333
name: github-pages

0 commit comments

Comments
 (0)