diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 27771ae..5f96b0c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,11 @@ on: branches: [main] pull_request: +concurrency: + # A new push to a pull request cancels its older run; runs on main are never cancelled. + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: test: runs-on: ubuntu-latest