This is an automated email from the ASF dual-hosted git repository.

apupier pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 33dbcecd2a3b61f465ab79f5c50c0447eeca2594
Author: Aurélien Pupier <[email protected]>
AuthorDate: Thu Oct 22 10:46:36 2026 +0200

    Skip JDK 21 build and rename input to jdk25_only
    
    - Rename include_jdk25 → jdk25_only: the parameter does not add JDK 25
      alongside JDK 21, it replaces the JDK 21 run with a JDK 25 run.
      The new name makes the behaviour explicit.
    - Skip the build (JDK 21) job when jdk25_only=true: the JDK 21 build is
      already covered by the regular PR check; running it again on the same
      dispatch wastes runner minutes.
    - Remove the '-jdk25' concurrency suffix added in the previous commit:
      it is no longer needed because the two jobs now occupy separate
      concurrency groups by virtue of skipping one of them.
---
 .github/workflows/pr-build-main.yml | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/pr-build-main.yml 
b/.github/workflows/pr-build-main.yml
index 04d73c04e1ff..61825c366ec7 100644
--- a/.github/workflows/pr-build-main.yml
+++ b/.github/workflows/pr-build-main.yml
@@ -54,14 +54,14 @@ on:
         required: false
         type: boolean
         default: false
-      include_jdk25:
-        description: 'Also run the build on JDK 25 (experimental)'
+      jdk25_only:
+        description: 'Run on JDK 25 only (skips JDK 21 build, experimental)'
         required: false
         type: boolean
         default: false
 
 concurrency:
-  group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
inputs.pr_number || github.ref }}${{ inputs.extra_modules && '-component-test' 
|| '' }}${{ inputs.include_jdk25 && '-jdk25' || '' }}
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
inputs.pr_number || github.ref }}${{ inputs.extra_modules && '-component-test' 
|| '' }}
   cancel-in-progress: true
 
 permissions:
@@ -69,7 +69,7 @@ permissions:
 
 jobs:
   build:
-    if: github.repository == 'apache/camel'
+    if: github.repository == 'apache/camel' && !inputs.jdk25_only
     permissions:
       contents: read
     runs-on: ubuntu-latest
@@ -253,7 +253,7 @@ jobs:
           overwrite: true
 
   build-jdk25:
-    if: github.repository == 'apache/camel' && inputs.include_jdk25 == true
+    if: github.repository == 'apache/camel' && inputs.jdk25_only == true
     permissions:
       contents: read
     runs-on: ubuntu-latest

Reply via email to