Skip to content

Commit

Permalink
chore(ci): kamelet fallback to main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
squakez committed Aug 4, 2023
1 parent 8fd9c62 commit 33fbc84
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions script/update_default_camel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 33fbc84

Please sign in to comment.