Update src/setup-python.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Dan Hecker 2025-12-20 13:35:20 -05:00 committed by GitHub
parent fc9c7d0367
commit da6c752c86
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -164,8 +164,12 @@ async function run() {
if (pypiUrl) { if (pypiUrl) {
const pypiUsername = core.getInput('pypi-username'); const pypiUsername = core.getInput('pypi-username');
const pypiPassword = core.getInput('pypi-password'); const pypiPassword = core.getInput('pypi-password');
if (pypiUsername && pypiUsername.trim()) {
core.setSecret(pypiUsername); core.setSecret(pypiUsername);
}
if (pypiPassword && pypiPassword.trim()) {
core.setSecret(pypiPassword); core.setSecret(pypiPassword);
}
await configurePipRepository(pypiUrl, pypiUsername, pypiPassword); await configurePipRepository(pypiUrl, pypiUsername, pypiPassword);
} }
const pipInstall = core.getInput('pip-install'); const pipInstall = core.getInput('pip-install');