You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pc...@apache.org on 2023/08/04 05:48:55 UTC

[camel-k] branch main updated: chore(ci): kamelet fallback to main branch

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

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


The following commit(s) were added to refs/heads/main by this push:
     new 33fbc841c chore(ci): kamelet fallback to main branch
33fbc841c is described below

commit 33fbc841c164820023e1f2688c2d0ac01c54d405
Author: Pasquale Congiusti <pa...@gmail.com>
AuthorDate: Fri Aug 4 07:48:17 2023 +0200

    chore(ci): kamelet fallback to main branch
---
 script/update_default_camel.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/script/update_default_camel.sh b/script/update_default_camel.sh
index bb6bc7363..871219e71 100755
--- a/script/update_default_camel.sh
+++ b/script/update_default_camel.sh
@@ -33,6 +33,12 @@ git clone https://github.com/apache/camel-kamelets.git /tmp/camel-kamelets
 pushd /tmp/camel-kamelets
 echo "INFO: Looking a suitable Kamelet tag for $camel_version camel version"
 kamelets_tag=$(git tag | grep $camel_version | sort -r | head -n 1)
+
+if [[ $kamelets_tag == "" ]]; then
+    echo "INFO: no tag found for $camel_version camel version. Fallback to main branch."
+    kamelets_tag="main"
+fi
+
 popd
 echo "INFO: Kamelets version set at $kamelets_tag"
 sed -i "s/^KAMELET_CATALOG_REPO_TAG := .*$/KAMELET_CATALOG_REPO_TAG := $kamelets_tag/" $location/Makefile