From 653b3b9355660a8fac7dd45018c5bf97248d8db3 Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi Date: Wed, 13 May 2026 16:22:16 +0000 Subject: [PATCH 1/2] .github: cancel ci for stale PR commits --- .github/workflows/go.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 3e811072ff..13d17ecee3 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -7,6 +7,10 @@ on: - master workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: lint: name: Lint From c7b05edb8ce9a08748c2392ce63d3cbb09506504 Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi Date: Wed, 13 May 2026 16:27:33 +0000 Subject: [PATCH 2/2] .github: document concurrency rationale --- .github/workflows/go.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 13d17ecee3..f86990b5a7 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -7,6 +7,7 @@ on: - master workflow_dispatch: +# Free runner capacity by cancelling superseded PR runs. concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: ${{ github.event_name == 'pull_request' }}