mirror of
https://kkgithub.com/actions/setup-python.git
synced 2026-01-13 14:21:52 +08:00
Add warning for python 2.7 on release/v2 (#675)
* add warning * remove ubuntu-18.04 * remove macos-10.15 * fix pypy3
This commit is contained in:
@ -28,6 +28,11 @@ async function run() {
|
||||
try {
|
||||
const version = core.getInput('python-version');
|
||||
if (version) {
|
||||
if (version.trim().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'
|
||||
);
|
||||
}
|
||||
let pythonVersion: string;
|
||||
const arch: string = core.getInput('architecture') || os.arch();
|
||||
if (isPyPyVersion(version)) {
|
||||
|
||||
Reference in New Issue
Block a user