Skip to content

Commit a1a5605

Browse files
committed
Fix CI workflow on pull_request
1 parent 131fb93 commit a1a5605

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,63 +36,65 @@ on: # yamllint disable-line rule:truthy
3636
jobs:
3737

3838
mpich-43:
39-
if: ${{ !inputs || inputs.mpich }}
39+
if: ${{ github.event_name == 'pull_request' || inputs.mpich }}
4040
uses: ./.github/workflows/cd-wheel.yml
4141
with:
4242
os-arch: ${{ inputs.os-arch }}
4343
mpiname: mpich
4444
version:
4545

4646
mpich-42:
47-
if: ${{ !inputs || inputs.mpich }}
47+
if: ${{ github.event_name == 'pull_request' || inputs.mpich }}
4848
uses: ./.github/workflows/cd-wheel.yml
4949
with:
5050
os-arch: ${{ inputs.os-arch }}
5151
mpiname: mpich
5252
version: 4.2.3
5353

5454
mpich-41:
55-
if: ${{ !inputs || inputs.mpich }}
55+
if: ${{ github.event_name == 'pull_request' || inputs.mpich }}
5656
uses: ./.github/workflows/cd-wheel.yml
5757
with:
5858
os-arch: ${{ inputs.os-arch }}
5959
mpiname: mpich
6060
version: 4.1.3
6161

6262
mpich-40:
63-
if: ${{ !inputs || inputs.mpich }}
63+
if: ${{ github.event_name == 'pull_request' || inputs.mpich }}
6464
uses: ./.github/workflows/cd-wheel.yml
6565
with:
6666
os-arch: ${{ inputs.os-arch }}
6767
mpiname: mpich
6868
version: 4.0.3
6969

7070
mpich-34:
71-
if: ${{ !inputs || inputs.mpich }}
71+
if: ${{ github.event_name == 'pull_request' || inputs.mpich }}
7272
uses: ./.github/workflows/cd-wheel.yml
7373
with:
7474
os-arch: ${{ inputs.os-arch }}
7575
mpiname: mpich
7676
version: 3.4.3
7777

7878
openmpi-50:
79-
if: ${{ !inputs || inputs.openmpi }}
79+
if: ${{ github.event_name == 'pull_request' || inputs.openmpi }}
8080
uses: ./.github/workflows/cd-wheel.yml
8181
with:
8282
os-arch: ${{ inputs.os-arch }}
8383
mpiname: openmpi
8484
version:
8585

8686
openmpi-41:
87-
if: ${{ !inputs || inputs.openmpi }}
87+
if: ${{ github.event_name == 'pull_request' || inputs.openmpi }}
8888
uses: ./.github/workflows/cd-wheel.yml
8989
with:
9090
os-arch: ${{ inputs.os-arch }}
9191
mpiname: openmpi
9292
version: 4.1.7
9393

9494
wheelhouse:
95-
if: ${{ always() && !inputs || inputs.mpich || inputs.openmpi }}
95+
if: >-
96+
github.event_name == 'pull_request'
97+
|| inputs.mpich || inputs.openmpi
9698
runs-on: ubuntu-latest
9799
needs:
98100
- mpich-43

0 commit comments

Comments
 (0)