Skip to content

Commit 28a6c1b

Browse files
Konrad PabjanKonrad Pabjan
Konrad Pabjan
authored and
Konrad Pabjan
committed
Remove old parameter that is deprecated
1 parent 6654142 commit 28a6c1b

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

action.yml

-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ inputs:
88
architecture:
99
description: 'The target architecture (x86, x64) of the Python interpreter.'
1010
default: 'x64'
11-
# Deprecated option, do not use. Will not be supported after October 1, 2019
12-
version:
13-
description: 'Deprecated. Use python-version instead. Will not be supported after October 1, 2019'
14-
deprecationMessage: 'The version property will not be supported after October 1, 2019. Use python-version instead'
1511
runs:
1612
using: 'node12'
1713
main: 'lib/setup-python.js'

lib/setup-python.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ const path = __importStar(require("path"));
2121
function run() {
2222
return __awaiter(this, void 0, void 0, function* () {
2323
try {
24-
let version = core.getInput('version');
25-
if (!version) {
26-
version = core.getInput('python-version');
27-
}
24+
let version = core.getInput('python-version');
2825
if (version) {
2926
const arch = core.getInput('architecture', { required: true });
3027
yield finder.findPythonVersion(version, arch);

src/setup-python.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ import * as path from 'path';
44

55
async function run() {
66
try {
7-
let version = core.getInput('version');
8-
if (!version) {
9-
version = core.getInput('python-version');
10-
}
7+
let version = core.getInput('python-version');
118
if (version) {
129
const arch: string = core.getInput('architecture', {required: true});
1310
await finder.findPythonVersion(version, arch);

0 commit comments

Comments
 (0)