Skip to content

Commit

Permalink
Update the nbgv tool as necessary on the agent
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Sep 8, 2022
1 parent 8aa44ed commit 9d582b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1606,6 +1606,7 @@ async function run() {
try {
let installArgs = ['tool', 'install', '-g', 'nbgv'];
if (settings_1.Inputs.toolVersion) {
installArgs[1] = 'update';
installArgs.push('--version', settings_1.Inputs.toolVersion);
}
if (settings_1.Inputs.toolFeed) {
Expand Down
1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ async function run() {
// install nbgv
let installArgs = ['tool', 'install', '-g', 'nbgv'];
if (Inputs.toolVersion) {
installArgs[1] = 'update'; // using 'update' will either install, or will change the version to what we want.
installArgs.push('--version', Inputs.toolVersion);
}

Expand Down

0 comments on commit 9d582b3

Please sign in to comment.