mirror of
https://github.com/actions/setup-python.git
synced 2024-11-21 22:50:58 -05:00
Remove old parameter that is deprecated
This commit is contained in:
parent
6654142a95
commit
28a6c1b915
3 changed files with 2 additions and 12 deletions
|
@ -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'
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue