diff --git a/packages/tools/src/scripts/gitlab-ci.ts b/packages/tools/src/scripts/gitlab-ci.ts index 3669552cb78b408605c14c0a9ac670ecf7e3fe4f..a24a86c22448ee5c07fdebd6057a90de43604f68 100644 --- a/packages/tools/src/scripts/gitlab-ci.ts +++ b/packages/tools/src/scripts/gitlab-ci.ts @@ -341,9 +341,11 @@ async function extractOpenFiscaJson() { ? `git@${CI_SERVER_HOST}:leximpact/simulateur-socio-fiscal/leximpact-socio-fiscal-openfisca-json.git` : `https://${CI_SERVER_HOST}/leximpact/simulateur-socio-fiscal/leximpact-socio-fiscal-openfisca-json.git` cd(rootDir) - await $`git clone ${ - JSON_BRANCH?.trim() ? ["--branch", JSON_BRANCH] : "" - } ${repository} ${jsonDir}` + if (JSON_BRANCH?.trim()) { + await $`git clone --branch ${JSON_BRANCH} ${repository} ${jsonDir}` + } else { + await $`git clone ${repository} ${jsonDir}` + } cd(toolsDir) // Extract JSON from OpenFisca source code.