mirror of
https://github.com/actions/setup-python.git
synced 2025-12-25 09:47:09 +00:00
Update src/setup-python.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
fc9c7d0367
commit
da6c752c86
1 changed files with 6 additions and 2 deletions
|
|
@ -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');
|
||||||
core.setSecret(pypiUsername);
|
if (pypiUsername && pypiUsername.trim()) {
|
||||||
core.setSecret(pypiPassword);
|
core.setSecret(pypiUsername);
|
||||||
|
}
|
||||||
|
if (pypiPassword && pypiPassword.trim()) {
|
||||||
|
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');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue