diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 3e811072ff..f86990b5a7 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -7,6 +7,11 @@ 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' }} + jobs: lint: name: Lint