mirror of
https://github.com/actions/setup-python.git
synced 2025-04-20 03:53:30 +00:00
Remove condition with sudo
This commit is contained in:
parent
8b4ba3d70d
commit
63cdca158a
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -33,7 +33,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos-latest, windows-latest, ubuntu-16.04, ubuntu-18.04]
|
os: [macos-latest, windows-latest, ubuntu-16.04, ubuntu-18.04]
|
||||||
python: [3.5.3, 3.6.7, 3.7.5, 3.8.1]
|
python: [3.5.4, 3.6.6, 3.7.4, 3.8.1]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
5
dist/index.js
vendored
5
dist/index.js
vendored
@ -2623,11 +2623,8 @@ function installPython(workingDirectory) {
|
|||||||
if (IS_WINDOWS) {
|
if (IS_WINDOWS) {
|
||||||
yield exec.exec('powershell', ['./setup.ps1'], options);
|
yield exec.exec('powershell', ['./setup.ps1'], options);
|
||||||
}
|
}
|
||||||
else if (IS_MACOS) {
|
|
||||||
yield exec.exec('bash', ['./setup.sh'], options);
|
|
||||||
}
|
|
||||||
else {
|
else {
|
||||||
yield exec.exec('sudo', ['-n', 'bash', './setup.sh'], options);
|
yield exec.exec('bash', ['./setup.sh'], options);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -42,10 +42,8 @@ async function installPython(workingDirectory: string) {
|
|||||||
|
|
||||||
if (IS_WINDOWS) {
|
if (IS_WINDOWS) {
|
||||||
await exec.exec('powershell', ['./setup.ps1'], options);
|
await exec.exec('powershell', ['./setup.ps1'], options);
|
||||||
} else if (IS_MACOS) {
|
|
||||||
await exec.exec('bash', ['./setup.sh'], options);
|
|
||||||
} else {
|
} else {
|
||||||
await exec.exec('sudo', ['-n', 'bash', './setup.sh'], options);
|
await exec.exec('bash', ['./setup.sh'], options);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user