diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5709726113..93ec83fd8d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,11 @@ on: branches: - main +# cancel in-progress runs on new commits to same PR (gitub.event.number) +concurrency: + group: ${{ github.workflow }}-${{ github.event.number || github.sha }} + cancel-in-progress: true + permissions: contents: read