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

3
dist/index.js vendored
View File

@ -2662,6 +2662,9 @@ function run() {
return __awaiter(this, void 0, void 0, function* () {
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 = core.getInput('architecture', { required: true });
const installed = yield finder.findPythonVersion(version, arch);

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