This is an automated email from the ASF dual-hosted git repository. ppkarwasz pushed a commit to branch fix/concurrency in repository https://gitbox.apache.org/repos/asf/logging-flume.git
commit 035c4d7ee8f5f649150f94177ce9a441f4d785ed Author: Piotr P. Karwasz <[email protected]> AuthorDate: Fri Jun 5 18:12:14 2026 +0200 Apply concurrency setting on PR jobs Applies a concurrency settings on PR jobs, so pushing a new commit to a PR cancels the previous jobs. --- .github/workflows/build.yml | 6 ++++++ .github/workflows/codeql-analysis.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index de66b8069..1341e64d1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,6 +25,12 @@ on: # Remove all permissions by default. They will be added at a job level. permissions: {} +concurrency: + # One group per PR, or per ref for branch pushes. + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + # Cancel in-progress runs for PRs only, so release branch builds always complete. + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: build: diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 5b7f168a6..9556608db 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -23,6 +23,12 @@ on: # Remove all permissions by default. They will be added at a job level. permissions: {} +concurrency: + # One group per PR, or per ref for branch pushes. + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + # Cancel in-progress runs for PRs only, so release branch builds always complete. + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: analyze: name: Analyze
