diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ff48981..e9da55c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -58,7 +58,7 @@ jobs: build: name: PHP ${{ matrix.version }} (${{ matrix.platform }}) needs: [matrix, test] - if: github.ref == 'refs/heads/master' && github.event_name == 'push' + if: ${{ !cancelled() && needs.matrix.result == 'success' && github.ref == 'refs/heads/master' && github.event_name == 'push' }} runs-on: ${{ matrix.runner }} strategy: fail-fast: false @@ -129,7 +129,7 @@ jobs: manifest: name: PHP ${{ matrix.version }} manifest needs: [matrix, build] - if: github.ref == 'refs/heads/master' && github.event_name == 'push' + if: ${{ !cancelled() && needs.matrix.result == 'success' && github.ref == 'refs/heads/master' && github.event_name == 'push' }} runs-on: ubuntu-latest strategy: fail-fast: false