Skip to content

Commit 15b9ee2

Browse files
authored
Codegen for 8.x clients should use the 8.x generator branch (#2515)
1 parent e30e964 commit 15b9ee2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/make.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ if [[ -z "${BUILDKITE+x}" ]] && [[ -z "${CI+x}" ]] && [[ -z "${GITHUB_ACTIONS+x}
150150
-u "$(id -u):$(id -g)" \
151151
--volume "$repo:/usr/src/elasticsearch-js" \
152152
--volume /usr/src/elasticsearch-js/node_modules \
153-
--volume "$(realpath $repo/../elastic-client-generator-js):/usr/src/elastic-client-generator-js" \
153+
--volume "$(realpath "$repo/../elastic-client-generator-js"):/usr/src/elastic-client-generator-js" \
154154
--env "WORKFLOW=$WORKFLOW" \
155155
--name make-elasticsearch-js \
156156
--rm \
@@ -159,6 +159,14 @@ if [[ -z "${BUILDKITE+x}" ]] && [[ -z "${CI+x}" ]] && [[ -z "${GITHUB_ACTIONS+x}
159159
node .buildkite/make.mjs --task $TASK ${TASK_ARGS[*]}"
160160
else
161161
echo -e "\033[34;1mINFO: Running in CI mode"
162+
163+
# determine branch to clone
164+
GENERATOR_BRANCH="main"
165+
if [[ "$VERSION" == 8.* ]]; then
166+
GENERATOR_BRANCH="8.x"
167+
fi
168+
echo -e "\033[34;1mINFO: Generator branch: $GENERATOR_BRANCH"
169+
162170
docker run \
163171
--volume "$repo:/usr/src/elasticsearch-js" \
164172
--volume /usr/src/elasticsearch-js/node_modules \

0 commit comments

Comments
 (0)