Skip to content

Commit e8229fa

Browse files
committed
Fix extra-repos param
1 parent b95cdbb commit e8229fa

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.circleci/config.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ commands:
5757
- repos-{{ parameters.extra_repos }}
5858
- run:
5959
command: |
60-
uv run --frozen gs codemod clone-repos --extra-repos=<<parameters.extra_repos>> --token ${CODEGEN_BOT_GHE_TOKEN} --clean-cache
60+
EXTRA_REPOS_ARG=""
61+
if [ "<<parameters.extra_repos>>" = "true" ]; then
62+
EXTRA_REPOS_ARG="--extra-repos"
63+
fi
64+
uv run --frozen gs codemod clone-repos ${EXTRA_REPOS_ARG} --token ${CODEGEN_BOT_GHE_TOKEN} --clean-cache
6165
- save_cache:
6266
paths:
6367
- $GITHUB_WORKSPACE
@@ -294,7 +298,7 @@ jobs:
294298
command: |
295299
EXTRA_REPOS_ARG=""
296300
if [ "<<parameters.extra_repos>>" = "true" ]; then
297-
EXTRA_REPOS_ARG="--extra-repos=true"
301+
EXTRA_REPOS_ARG="--extra-repos"
298302
fi
299303
PYTEST_ARGS="${EXTRA_REPOS_ARG} --token ${CODEGEN_BOT_GHE_TOKEN} -o junit_suite_name=\"${CIRCLE_JOB}\" tests/codemod/test_parse.py"
300304
echo "Running tests with args: $PYTEST_ARGS"

0 commit comments

Comments
 (0)