You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by fa...@apache.org on 2026/09/20 10:58:30 UTC
(poi) branch trunk updated: GitHub CI: one run per PR, new commits cancel the run in flight (#1313)
This is an automated email from the ASF dual-hosted git repository.
pjfanning pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/poi.git
The following commit(s) were added to refs/heads/trunk by this push:
new 194de1b263 GitHub CI: one run per PR, new commits cancel the run in flight (#1313)
194de1b263 is described below
commit 194de1b2631343b5f57e9be3581415a14a95d0b5
Author: PJ Fanning <pj...@users.noreply.github.com>
AuthorDate: Sun Sep 20 11:58:24 2026 +0100
GitHub CI: one run per PR, new commits cancel the run in flight (#1313)
Add a concurrency group keyed on workflow and ref to the Gradle and Ant
workflows. For pull_request events the in-progress run is cancelled
when a new commit arrives; pushes to trunk/5.5.x are queued, not
cancelled, so every commit there still gets a result.
Co-authored-by: Claude Opus 5 <no...@anthropic.com>
---
.github/workflows/test-ant.yml | 6 ++++++
.github/workflows/test-gradle.yml | 6 ++++++
2 files changed, 12 insertions(+)
diff --git a/.github/workflows/test-ant.yml b/.github/workflows/test-ant.yml
index 26587e1ec8..5cc473c92e 100644
--- a/.github/workflows/test-ant.yml
+++ b/.github/workflows/test-ant.yml
@@ -9,6 +9,12 @@ on:
pull_request:
branches: [ trunk ]
+# one run per PR: a new commit cancels the run still in flight for the previous one;
+# pushes to the protected branches are never cancelled, so every commit there gets its result
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
env:
ANT_VERSION: 1.10.18
diff --git a/.github/workflows/test-gradle.yml b/.github/workflows/test-gradle.yml
index b1c5b7a5ea..bf58cac261 100644
--- a/.github/workflows/test-gradle.yml
+++ b/.github/workflows/test-gradle.yml
@@ -9,6 +9,12 @@ on:
pull_request:
branches: [ trunk, 5.5.x ]
+# one run per PR: a new commit cancels the run still in flight for the previous one;
+# pushes to the protected branches are never cancelled, so every commit there gets its result
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
permissions: {}
jobs:
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org