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


The following commit(s) were added to refs/heads/main by this push:
     new de2c070  Ensure correct camel-quarkus-examples branch for maintenance 
branch PRs
de2c070 is described below

commit de2c070894ab424c2b9f1f93c50f5f3b1ac0dad6
Author: James Netherton <[email protected]>
AuthorDate: Thu Feb 24 08:58:40 2022 +0000

    Ensure correct camel-quarkus-examples branch for maintenance branch PRs
    
    Fixes #3574
---
 .github/workflows/ci-build.yaml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/ci-build.yaml b/.github/workflows/ci-build.yaml
index 9873811..35e4d23 100644
--- a/.github/workflows/ci-build.yaml
+++ b/.github/workflows/ci-build.yaml
@@ -427,7 +427,13 @@ jobs:
         run: echo "CQ_VERSION=$(mvn help:evaluate -Dexpression=project.version 
-q -DforceStdout)" >> $GITHUB_ENV
       - name: clone and verify examples
         run: |
-          git clone --depth 1 --branch camel-quarkus-main 
https://github.com/apache/camel-quarkus-examples.git \
+          EXAMPLES_BRANCH="camel-quarkus-main"
+
+          if [[ ${GITHUB_REF_NAME} =~ [0-9]+.[0-9]+.x ]]; then
+              EXAMPLES_BRANCH=${GITHUB_REF_NAME}
+          fi
+
+          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) \
             && mvn ${MAVEN_ARGS} ${BRANCH_OPTIONS} 
org.l2x6.cq:cq-maven-plugin:2.10.0:examples-set-platform 
-Dcq.camel-quarkus.version=${CQ_VERSION} \

Reply via email to