This is an automated email from the ASF dual-hosted git repository.
gnodet pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 6c8838ecbda9 chore(ci): add main branch build workflow and concurrency
control (#21720)
6c8838ecbda9 is described below
commit 6c8838ecbda98a90ceeae67d86ec3b2c4f275113
Author: Guillaume Nodet <[email protected]>
AuthorDate: Thu Mar 5 16:48:37 2026 +0100
chore(ci): add main branch build workflow and concurrency control (#21720)
- Add main-build.yml workflow for push builds on main and release branches
(camel-4.14.x, camel-4.18.x) with JDK 21
- Add concurrency groups with cancel-in-progress to PR workflows
(pr-build-main, depsreview, pr-doc-validation, pr-id) to cancel
outdated runs when a PR is updated
---
.github/workflows/depsreview.yaml | 4 +++
.../{pr-build-main.yml => main-build.yml} | 30 ++++++++--------------
.github/workflows/pr-build-main.yml | 4 +++
.github/workflows/pr-doc-validation.yml | 4 +++
.github/workflows/pr-id.yml | 4 +++
5 files changed, 26 insertions(+), 20 deletions(-)
diff --git a/.github/workflows/depsreview.yaml
b/.github/workflows/depsreview.yaml
index 3004988dfe2f..649f371597a4 100644
--- a/.github/workflows/depsreview.yaml
+++ b/.github/workflows/depsreview.yaml
@@ -18,6 +18,10 @@
name: 'Dependency Review'
on: [pull_request]
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number ||
github.ref }}
+ cancel-in-progress: true
+
permissions:
contents: read
diff --git a/.github/workflows/pr-build-main.yml
b/.github/workflows/main-build.yml
similarity index 78%
copy from .github/workflows/pr-build-main.yml
copy to .github/workflows/main-build.yml
index 9467f7fe951e..47251f27ac99 100644
--- a/.github/workflows/pr-build-main.yml
+++ b/.github/workflows/main-build.yml
@@ -15,19 +15,18 @@
# limitations under the License.
#
-name: Build and test
+name: Main build
on:
- pull_request:
+ push:
branches:
- main
- paths-ignore:
- - .github/**
- - README.md
- - SECURITY.md
- - Jenkinsfile
- - Jenkinsfile.*
- - NOTICE.txt
+ - camel-4.14.x
+ - camel-4.18.x
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
permissions:
contents: read
@@ -35,14 +34,10 @@ permissions:
jobs:
build:
if: github.repository == 'apache/camel'
- permissions:
- issues: write
runs-on: ubuntu-latest
- continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
java: ['21']
- experimental: [ false ]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #
v6.0.2
@@ -64,7 +59,7 @@ jobs:
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f
# v7.0.0
if: always()
with:
- name: build-${{ matrix.java }}.log
+ name: main-build-${{ matrix.java }}.log
path: build.log
- name: Fail if there are uncommitted changes
shell: bash
@@ -74,11 +69,6 @@ jobs:
uses: ./.github/actions/incremental-build
with:
mode: test
- pr-id: ${{ github.event.number }}
github-token: ${{ secrets.GITHUB_TOKEN }}
skip-mvnd-install: 'true'
- artifact-upload-suffix: java-${{ matrix.java }}
- - name: mvn test parent pom dependencies changed
- uses: ./.github/actions/detect-dependencies
- with:
- github-token: ${{ secrets.GITHUB_TOKEN }}
+ artifact-upload-suffix: main-java-${{ matrix.java }}
diff --git a/.github/workflows/pr-build-main.yml
b/.github/workflows/pr-build-main.yml
index 9467f7fe951e..9138d41cb662 100644
--- a/.github/workflows/pr-build-main.yml
+++ b/.github/workflows/pr-build-main.yml
@@ -29,6 +29,10 @@ on:
- Jenkinsfile.*
- NOTICE.txt
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number ||
github.ref }}
+ cancel-in-progress: true
+
permissions:
contents: read
diff --git a/.github/workflows/pr-doc-validation.yml
b/.github/workflows/pr-doc-validation.yml
index 81bce4094947..a53faf1b5870 100644
--- a/.github/workflows/pr-doc-validation.yml
+++ b/.github/workflows/pr-doc-validation.yml
@@ -23,6 +23,10 @@ on:
paths:
- '**.adoc'
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number ||
github.ref }}
+ cancel-in-progress: true
+
permissions:
contents: read
diff --git a/.github/workflows/pr-id.yml b/.github/workflows/pr-id.yml
index 361340e7fd14..831835634c2e 100644
--- a/.github/workflows/pr-id.yml
+++ b/.github/workflows/pr-id.yml
@@ -19,6 +19,10 @@ name: PR id uploader
on: [pull_request]
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number ||
github.ref }}
+ cancel-in-progress: true
+
jobs:
upload:
runs-on: ubuntu-latest