From 9ced9a43a244f3ac94f13bfd896db8c8f30da67a Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Thu, 24 Feb 2022 16:31:57 +0300 Subject: [PATCH] remove version input (#424) --- action.yml | 4 ---- dist/setup/index.js | 2 +- src/main.ts | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/action.yml b/action.yml index 909045d5b..41e45d2dd 100644 --- a/action.yml +++ b/action.yml @@ -27,10 +27,6 @@ inputs: description: 'Used to specify the path to a dependency file: package-lock.json, yarn.lock, etc. Supports wildcards or a list of file names for caching multiple dependencies.' # TODO: add input to control forcing to pull from cloud or dist. # escape valve for someone having issues or needing the absolute latest which isn't cached yet -# Deprecated option, do not use. Will not be supported after October 1, 2019 - version: - description: 'Deprecated. Use node-version instead. Will not be supported after October 1, 2019' - deprecationMessage: 'The version property will not be supported after October 1, 2019. Use node-version instead' outputs: cache-hit: description: 'A boolean value to indicate if a cache was hit' diff --git a/dist/setup/index.js b/dist/setup/index.js index 01a0e5681..b4b1cfdf8 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -6643,7 +6643,7 @@ function isGhes() { return ghUrl.hostname.toUpperCase() !== 'GITHUB.COM'; } function resolveVersionInput() { - let version = core.getInput('node-version') || core.getInput('version'); + let version = core.getInput('node-version'); const versionFileInput = core.getInput('node-version-file'); if (version && versionFileInput) { core.warning('Both node-version and node-version-file inputs are specified, only node-version will be used'); diff --git a/src/main.ts b/src/main.ts index 58c902b85..2de86ca8e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -74,7 +74,7 @@ function isGhes(): boolean { } function resolveVersionInput(): string { - let version = core.getInput('node-version') || core.getInput('version'); + let version = core.getInput('node-version'); const versionFileInput = core.getInput('node-version-file'); if (version && versionFileInput) {