diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 96ba74a..4367943 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,11 @@ on: permissions: contents: read +# A new push to a pull request cancels its older run; runs on main, tags and schedules never cancel one another. +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: test: name: Test (${{ matrix.arch }})