Skip to content

Commit 176c6bc

Browse files
committed
Use correct env
1 parent 1cd39bb commit 176c6bc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/cleanup_pypi.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ on:
2525
required: true
2626
options:
2727
- pypi-prod-nightly
28+
- pypi-prod
2829
- pypi-test
2930

3031
jobs:
@@ -59,10 +60,10 @@ jobs:
5960
PYTHON_UNBUFFERED: 1
6061
run: |
6162
set -x
63+
env_flag=$( [[ ${{ inputs.environment }} == pypi-prod* ]] && echo "--prod" || echo "--test" )
6264
uv sync --only-group pypi --no-install-project
63-
# TODO: set test/prod flag according to env (inputs.environment == 'production.pypi' && '--prod' || '--test')
6465
uv run --no-sync python -u -m duckdb_packaging.pypi_cleanup ${{ inputs.dry-run && '--dry' || '' }} \
65-
--test \
66+
$env_flag \
6667
--username "${{ vars.PYPI_CLEANUP_USERNAME }}" \
6768
--max-nightlies ${{ vars.PYPI_MAX_NIGHTLIES }} 2>&1 | tee cleanup_output
6869

0 commit comments

Comments
 (0)