Skip to content

Commit

Permalink
remove version input (#424)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-shibanov committed Feb 24, 2022
1 parent 3e90744 commit 9ced9a4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions action.yml
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion dist/setup/index.js
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Expand Up @@ -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) {
Expand Down

0 comments on commit 9ced9a4

Please sign in to comment.