Skip to content

Commit

Permalink
Remove old parameter that is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
Konrad Pabjan authored and Konrad Pabjan committed Nov 5, 2019
1 parent 6654142 commit 28a6c1b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
4 changes: 0 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
5 changes: 1 addition & 4 deletions lib/setup-python.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
5 changes: 1 addition & 4 deletions src/setup-python.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 28a6c1b

Please sign in to comment.