mirror of
https://github.com/actions/setup-python.git
synced 2025-04-24 15:32:13 +00:00
add warning
This commit is contained in:
parent
75f3110429
commit
c374f3b7b5
2 changed files with 8 additions and 0 deletions
3
dist/setup/index.js
vendored
3
dist/setup/index.js
vendored
|
@ -7010,6 +7010,9 @@ function run() {
|
||||||
try {
|
try {
|
||||||
const version = core.getInput('python-version');
|
const version = core.getInput('python-version');
|
||||||
if (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;
|
let pythonVersion;
|
||||||
const arch = core.getInput('architecture') || os.arch();
|
const arch = core.getInput('architecture') || os.arch();
|
||||||
if (isPyPyVersion(version)) {
|
if (isPyPyVersion(version)) {
|
||||||
|
|
|
@ -28,6 +28,11 @@ async function run() {
|
||||||
try {
|
try {
|
||||||
const version = core.getInput('python-version');
|
const version = core.getInput('python-version');
|
||||||
if (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;
|
let pythonVersion: string;
|
||||||
const arch: string = core.getInput('architecture') || os.arch();
|
const arch: string = core.getInput('architecture') || os.arch();
|
||||||
if (isPyPyVersion(version)) {
|
if (isPyPyVersion(version)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue