add warning

This commit is contained in:
Dmitry Shibanov 2023-05-23 16:01:59 +02:00
parent 0cf603f701
commit 975ba007b9
2 changed files with 8 additions and 0 deletions

View file

@ -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);