Add warning for python 2.7 (#673)

This commit is contained in:
Dmitry Shibanov
2023-05-24 14:37:35 +02:00
committed by GitHub
parent 0cbcb9a3d7
commit bd6b4b6205
2 changed files with 8 additions and 0 deletions

View File

@ -98,6 +98,11 @@ async function run() {
`Successfully set up PyPy ${installed.resolvedPyPyVersion} with Python (${installed.resolvedPythonVersion})`
);
} else {
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'
);
}
const installed = await finder.useCpythonVersion(
version,
arch,