Skip to content

Commit

Permalink
version option before preferredNodeVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
sndrs committed Mar 6, 2021
1 parent ae4555e commit 4f9f7c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ export async function run() {
//
let version = core.getInput('node-version');
if (!version) {
version = (await preferredNodeVersion()).version;
version = core.getInput('version');
}
if (!version) {
version = core.getInput('version');
version = (await preferredNodeVersion()).version;
}

let arch = core.getInput('architecture');
Expand Down

0 comments on commit 4f9f7c8

Please sign in to comment.