Skip to content

Commit

Permalink
ci: fix conditions (#679)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjchambers authored Aug 19, 2023
2 parents 1d7ea51 + 56394a5 commit beb5dda
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ jobs:
build-wheel-macos:
# Build wheels in the merge queue. We can either duplicate this in `main`
# or retrieve the built wheels.
if: github.event == 'merge_group'
if: github.event_name == 'merge_group'
runs-on: macos-latest
strategy:
matrix:
Expand Down Expand Up @@ -197,7 +197,7 @@ jobs:
build-wheel-windows:
# Build wheels in the merge queue. We can either duplicate this in `main`
# or retrieve the built wheels.
if: github.event == 'merge_group'
if: github.event_name == 'merge_group'
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -246,8 +246,8 @@ jobs:
# Build wheels in the merge queue. We also do this on push to `main`
# because it builds the docs which we'll release.
if: |
github.event == 'merge_group' ||
(github.event == 'push' && github.ref == 'refs/heads/main')
github.event_name == 'merge_group' ||
(github.event_name == 'push' && github.ref == 'refs/heads/main')
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -309,7 +309,7 @@ jobs:
sdist:
# Build wheels in the merge queue. We can either duplicate this in `main`
# or retrieve the built wheels.
if: github.event == 'merge_group'
if: github.event_name == 'merge_group'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -327,7 +327,7 @@ jobs:

docs-deploy:
# Deploy docs on push to main.
if: github.event == 'push' && github.ref == 'refs/heads/main'
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
# Deployment job
environment:
name: github-pages
Expand Down

0 comments on commit beb5dda

Please sign in to comment.