mirror of
https://github.com/actions/setup-python.git
synced 2026-01-20 04:38:56 +08:00
add warning
This commit is contained in:
parent
0cf603f701
commit
975ba007b9
2 changed files with 8 additions and 0 deletions
|
|
@ -5,6 +5,11 @@ import * as path from 'path';
|
|||
async function run() {
|
||||
try {
|
||||
let version = core.getInput('python-version');
|
||||
if (version.startsWith('2')) {
|
||||
core.warning(
|
||||
'The support for python 2.7 will be removed on June 19. Related issue: https://github.com/actions/setup-python/issues/672'
|
||||
);
|
||||
}
|
||||
if (version) {
|
||||
const arch: string = core.getInput('architecture', {required: true});
|
||||
const installed = await finder.findPythonVersion(version, arch);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue