Skip to content

Commit 9ced9a4

Browse files
remove version input (#424)
1 parent 3e90744 commit 9ced9a4

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

action.yml

-4
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ inputs:
2727
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.'
2828
# TODO: add input to control forcing to pull from cloud or dist.
2929
# escape valve for someone having issues or needing the absolute latest which isn't cached yet
30-
# Deprecated option, do not use. Will not be supported after October 1, 2019
31-
version:
32-
description: 'Deprecated. Use node-version instead. Will not be supported after October 1, 2019'
33-
deprecationMessage: 'The version property will not be supported after October 1, 2019. Use node-version instead'
3430
outputs:
3531
cache-hit:
3632
description: 'A boolean value to indicate if a cache was hit'

dist/setup/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6643,7 +6643,7 @@ function isGhes() {
66436643
return ghUrl.hostname.toUpperCase() !== 'GITHUB.COM';
66446644
}
66456645
function resolveVersionInput() {
6646-
let version = core.getInput('node-version') || core.getInput('version');
6646+
let version = core.getInput('node-version');
66476647
const versionFileInput = core.getInput('node-version-file');
66486648
if (version && versionFileInput) {
66496649
core.warning('Both node-version and node-version-file inputs are specified, only node-version will be used');

src/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function isGhes(): boolean {
7474
}
7575

7676
function resolveVersionInput(): string {
77-
let version = core.getInput('node-version') || core.getInput('version');
77+
let version = core.getInput('node-version');
7878
const versionFileInput = core.getInput('node-version-file');
7979

8080
if (version && versionFileInput) {

0 commit comments

Comments
 (0)