Skip to content

Commit 08302eb

Browse files
committed
Update to build examples off of a tag
1 parent 9822bf2 commit 08302eb

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

etc/scripts/build-examples.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,11 @@ readonly HELIDON_VERSION
5151
# If needed we clone the helidon-examples repo
5252
if [ ! -d "${WS_DIR}/helidon-examples" ]; then
5353
echo "Cloning examples repository into ${WS_DIR}/helidon-examples"
54-
git clone --branch dev-4.x --single-branch https://github.com/helidon-io/helidon-examples.git "${WS_DIR}/helidon-examples"
55-
56-
# If in a tag, update the version on the fly
57-
if [ -n "$(git tag --points-at HEAD)" ] ; then
58-
"${WS_DIR}/helidon-examples"/etc/scripts/update-version.sh "${HELIDON_VERSION}"
59-
fi
54+
# We can't clone the dev-4.x branch since that has already moved on to the Helidon version in main.
55+
# So we use the tag of the last matching minor, then update the helidon version in examples to
56+
# match what is in our branch
57+
git clone --branch 4.3.2 --single-branch https://github.com/helidon-io/helidon-examples.git "${WS_DIR}/helidon-examples"
58+
"${WS_DIR}/helidon-examples"/etc/scripts/update-version.sh "${HELIDON_VERSION}"
6059
fi
6160

6261
HELIDON_VERSION_IN_EXAMPLES=$(version "${WS_DIR}/helidon-examples/pom.xml")

0 commit comments

Comments
 (0)