From 56394a582551f3e924605d83772429cf75d813e4 Mon Sep 17 00:00:00 2001 From: Ben Chambers <35960+bjchambers@users.noreply.github.com> Date: Sat, 19 Aug 2023 07:51:11 -0700 Subject: [PATCH] ci: fix conditions --- .github/workflows/ci_python.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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