diff --git a/.github/make.sh b/.github/make.sh index 8a74c5338..3d962c81d 100755 --- a/.github/make.sh +++ b/.github/make.sh @@ -176,7 +176,7 @@ else --rm \ $product \ /bin/bash -c "cd /usr/src && \ - git clone https://$CLIENTS_GITHUB_TOKEN@github.com/elastic/elastic-client-generator-js.git && \ + git clone --branch $GENERATOR_BRANCH https://$CLIENTS_GITHUB_TOKEN@github.com/elastic/elastic-client-generator-js.git && \ mkdir -p /usr/src/elastic-client-generator-js/output && \ cd /usr/src/elasticsearch-js && \ node .buildkite/make.mjs --task $TASK ${TASK_ARGS[*]}"