diff --git a/.github/workflows/ci_python.yml b/.github/workflows/ci_python.yml index f053cafa4..37204b13e 100644 --- a/.github/workflows/ci_python.yml +++ b/.github/workflows/ci_python.yml @@ -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: @@ -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 @@ -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: @@ -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 @@ -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