diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 1a0c3ceca0..93efa08a0e 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -1,5 +1,10 @@ name: Build NEURON Python wheels +concurrency: + # Don't cancel on master, creating a PR when a push workflow is already going will cancel the push workflow in favour of the PR workflow + group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.run_id || github.event.number && github.head_ref || github.ref_name }} + cancel-in-progress: true + on: push: branches: