From 28a6c1b915d5808acb3da49af7063544ebfbe085 Mon Sep 17 00:00:00 2001 From: Konrad Pabjan Date: Tue, 5 Nov 2019 15:43:35 -0500 Subject: [PATCH] Remove old parameter that is deprecated --- action.yml | 4 ---- lib/setup-python.js | 5 +---- src/setup-python.ts | 5 +---- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/action.yml b/action.yml index 7a0ac63..e1684fe 100644 --- a/action.yml +++ b/action.yml @@ -8,10 +8,6 @@ inputs: architecture: description: 'The target architecture (x86, x64) of the Python interpreter.' default: 'x64' -# Deprecated option, do not use. Will not be supported after October 1, 2019 - version: - description: 'Deprecated. Use python-version instead. Will not be supported after October 1, 2019' - deprecationMessage: 'The version property will not be supported after October 1, 2019. Use python-version instead' runs: using: 'node12' main: 'lib/setup-python.js' diff --git a/lib/setup-python.js b/lib/setup-python.js index 5765c26..e492a9f 100644 --- a/lib/setup-python.js +++ b/lib/setup-python.js @@ -21,10 +21,7 @@ const path = __importStar(require("path")); function run() { return __awaiter(this, void 0, void 0, function* () { try { - let version = core.getInput('version'); - if (!version) { - version = core.getInput('python-version'); - } + let version = core.getInput('python-version'); if (version) { const arch = core.getInput('architecture', { required: true }); yield finder.findPythonVersion(version, arch); diff --git a/src/setup-python.ts b/src/setup-python.ts index 7de755d..76ce743 100644 --- a/src/setup-python.ts +++ b/src/setup-python.ts @@ -4,10 +4,7 @@ import * as path from 'path'; async function run() { try { - let version = core.getInput('version'); - if (!version) { - version = core.getInput('python-version'); - } + let version = core.getInput('python-version'); if (version) { const arch: string = core.getInput('architecture', {required: true}); await finder.findPythonVersion(version, arch);