File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff 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[*]} "
160160else
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 \
You can’t perform that action at this time.
0 commit comments