This is an automated email from the ASF dual-hosted git repository. jamesnetherton pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit ec32be456befc96d982a9a94f0fc70e7748b4e16 Author: James Netherton <[email protected]> AuthorDate: Tue Jul 7 08:57:55 2026 +0100 Ensure examples job checkout step clones the correct target branch and use Maven -N for setting example project versions --- .github/workflows/alternate-jdk-build.yaml | 5 ++++- .github/workflows/camel-master-cron.yaml | 2 +- .github/workflows/ci-build.yaml | 5 ++++- .github/workflows/quarkus-lts-ci-build.yaml | 2 +- .github/workflows/quarkus-master-cron.yaml | 2 +- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/alternate-jdk-build.yaml b/.github/workflows/alternate-jdk-build.yaml index 57138541d2..76a894537e 100644 --- a/.github/workflows/alternate-jdk-build.yaml +++ b/.github/workflows/alternate-jdk-build.yaml @@ -381,6 +381,9 @@ jobs: steps: - name: Checkout uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + with: + ref: ${{ env.CHECKOUT_REF }} + fetch-depth: 0 - name: Set up JDK ${{ env.JDK_VERSION }} uses: actions/setup-java@1bcf9fb12cf4aa7d266a90ae39939e61372fe520 # v5.4.0 with: @@ -409,7 +412,7 @@ jobs: git clone --depth 1 --branch ${EXAMPLES_BRANCH} https://github.com/apache/camel-quarkus-examples.git \ && cd camel-quarkus-examples \ && echo "Current Examples commit:" $(git rev-parse HEAD) \ - && ./mvnw ${CQ_MAVEN_ARGS} ${BRANCH_OPTIONS} org.l2x6.cq:cq-maven-plugin:2.10.0:examples-set-platform -Dcq.camel-quarkus.version=${CQ_VERSION} + && ./mvnw ${CQ_MAVEN_ARGS} ${BRANCH_OPTIONS} -N org.l2x6.cq:cq-maven-plugin:2.10.0:examples-set-platform -Dcq.camel-quarkus.version=${CQ_VERSION} BUILD_FAILURES=() diff --git a/.github/workflows/camel-master-cron.yaml b/.github/workflows/camel-master-cron.yaml index 0088be7fb4..8185be1469 100644 --- a/.github/workflows/camel-master-cron.yaml +++ b/.github/workflows/camel-master-cron.yaml @@ -450,7 +450,7 @@ jobs: git clone --depth 1 --branch ${EXAMPLES_BRANCH} https://github.com/apache/camel-quarkus-examples.git \ && cd camel-quarkus-examples \ && echo "Current Examples commit:" $(git rev-parse HEAD) \ - && ./mvnw ${CQ_MAVEN_ARGS} ${BRANCH_OPTIONS} org.l2x6.cq:cq-maven-plugin:2.10.0:examples-set-platform -Dcq.camel-quarkus.version=${CQ_VERSION} + && ./mvnw ${CQ_MAVEN_ARGS} ${BRANCH_OPTIONS} -N org.l2x6.cq:cq-maven-plugin:2.10.0:examples-set-platform -Dcq.camel-quarkus.version=${CQ_VERSION} BUILD_FAILURES=() diff --git a/.github/workflows/ci-build.yaml b/.github/workflows/ci-build.yaml index 3fd864cca2..97dc8e9578 100644 --- a/.github/workflows/ci-build.yaml +++ b/.github/workflows/ci-build.yaml @@ -752,6 +752,9 @@ jobs: steps: - name: Checkout uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + with: + ref: ${{ env.CHECKOUT_REF }} + fetch-depth: 0 - name: Set up JDK 17 uses: actions/setup-java@1bcf9fb12cf4aa7d266a90ae39939e61372fe520 # v5.4.0 with: @@ -780,7 +783,7 @@ jobs: git clone --depth 1 --branch ${EXAMPLES_BRANCH} https://github.com/apache/camel-quarkus-examples.git \ && cd camel-quarkus-examples \ && echo "Current Examples commit:" $(git rev-parse HEAD) \ - && ./mvnw ${CQ_MAVEN_ARGS} ${BRANCH_OPTIONS} org.l2x6.cq:cq-maven-plugin:2.10.0:examples-set-platform -Dcq.camel-quarkus.version=${CQ_VERSION} + && ./mvnw ${CQ_MAVEN_ARGS} ${BRANCH_OPTIONS} -N org.l2x6.cq:cq-maven-plugin:2.10.0:examples-set-platform -Dcq.camel-quarkus.version=${CQ_VERSION} # Filter examples for incremental builds MODULES_TO_BUILD="${EXAMPLE_MODULES//,/ }" diff --git a/.github/workflows/quarkus-lts-ci-build.yaml b/.github/workflows/quarkus-lts-ci-build.yaml index 08c0229206..5fbc702522 100644 --- a/.github/workflows/quarkus-lts-ci-build.yaml +++ b/.github/workflows/quarkus-lts-ci-build.yaml @@ -403,7 +403,7 @@ jobs: git clone --depth 1 --branch ${EXAMPLES_BRANCH} https://github.com/apache/camel-quarkus-examples.git \ && cd camel-quarkus-examples \ && echo "Current Examples commit:" $(git rev-parse HEAD) \ - && ./mvnw ${CQ_MAVEN_ARGS} ${BRANCH_OPTIONS} org.l2x6.cq:cq-maven-plugin:2.10.0:examples-set-platform -Dcq.camel-quarkus.version=${CQ_VERSION} + && ./mvnw ${CQ_MAVEN_ARGS} ${BRANCH_OPTIONS} -N org.l2x6.cq:cq-maven-plugin:2.10.0:examples-set-platform -Dcq.camel-quarkus.version=${CQ_VERSION} BUILD_FAILURES=() diff --git a/.github/workflows/quarkus-master-cron.yaml b/.github/workflows/quarkus-master-cron.yaml index e2ca6996c9..5d81af40e3 100644 --- a/.github/workflows/quarkus-master-cron.yaml +++ b/.github/workflows/quarkus-master-cron.yaml @@ -452,7 +452,7 @@ jobs: git clone --depth 1 --branch ${EXAMPLES_BRANCH} https://github.com/apache/camel-quarkus-examples.git \ && cd camel-quarkus-examples \ && echo "Current Examples commit:" $(git rev-parse HEAD) \ - && ./mvnw ${CQ_MAVEN_ARGS} ${BRANCH_OPTIONS} org.l2x6.cq:cq-maven-plugin:2.10.0:examples-set-platform -Dcq.camel-quarkus.version=${CQ_VERSION} + && ./mvnw ${CQ_MAVEN_ARGS} ${BRANCH_OPTIONS} -N org.l2x6.cq:cq-maven-plugin:2.10.0:examples-set-platform -Dcq.camel-quarkus.version=${CQ_VERSION} BUILD_FAILURES=()
