mirror of
https://github.com/actions/setup-python.git
synced 2026-01-24 07:51:44 +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
@ -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');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user