This is an automated email from the ASF dual-hosted git repository.
ppkarwasz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/logging-flume.git
The following commit(s) were added to refs/heads/trunk by this push:
new d1ea681ea Apply concurrency setting on PR jobs (#440)
d1ea681ea is described below
commit d1ea681ea1c72df9b69c8b17634b367130f5aeb4
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Fri Jun 5 18:28:27 2026 +0200
Apply concurrency setting on PR jobs (#440)
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