diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 626bd3a..52ae5e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,11 @@ on: permissions: contents: read +# A newer push to a pull request cancels its older run; every commit on main keeps its own run. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: check: runs-on: ubuntu-latest