bug: ensure rtx install
is always run
I added this conditional forgetting .tool-versions might exist but not be defined in yml
This commit is contained in:
parent
af19b40e29
commit
6e7a18f59b
3 changed files with 5 additions and 7 deletions
5
dist/index.js
generated
vendored
5
dist/index.js
generated
vendored
|
@ -39,9 +39,8 @@ const path = __importStar(__nccwpck_require__(17));
|
|||
async function run() {
|
||||
await setupRTX();
|
||||
await exec.exec('rtx', ['--version']);
|
||||
if (await setToolVersions()) {
|
||||
await exec.exec('rtx', ['install']);
|
||||
}
|
||||
await setToolVersions();
|
||||
await exec.exec('rtx', ['install']);
|
||||
await setPaths();
|
||||
}
|
||||
exports.run = run;
|
||||
|
|
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
@ -7,9 +7,8 @@ import * as path from 'path'
|
|||
async function run(): Promise<void> {
|
||||
await setupRTX()
|
||||
await exec.exec('rtx', ['--version'])
|
||||
if (await setToolVersions()) {
|
||||
await exec.exec('rtx', ['install'])
|
||||
}
|
||||
await setToolVersions()
|
||||
await exec.exec('rtx', ['install'])
|
||||
await setPaths()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue