File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2525 required : true
2626 options :
2727 - pypi-prod-nightly
28+ - pypi-prod
2829 - pypi-test
2930
3031jobs :
@@ -59,18 +60,17 @@ 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
6970 - name : PyPI Cleanup Summary
7071 run : |
7172 echo "## PyPI Cleanup Summary" >> $GITHUB_STEP_SUMMARY
7273 echo "* Dry run: ${{ inputs.dry-run }}" >> $GITHUB_STEP_SUMMARY
73- echo "* PyPI Host: ${{ vars.PYPI_HOST }}" >> $GITHUB_STEP_SUMMARY
7474 echo "* CI Environment: ${{ inputs.environment }}" >> $GITHUB_STEP_SUMMARY
7575 echo "* Output:" >> $GITHUB_STEP_SUMMARY
7676 echo '```' >> $GITHUB_STEP_SUMMARY
You can’t perform that action at this time.
0 commit comments