Add install option to skip rtx install (#146)
This commit is contained in:
parent
0e1fc71c4a
commit
50bd58fbe0
4 changed files with 13 additions and 3 deletions
|
@ -8,6 +8,10 @@ inputs:
|
|||
tool_versions:
|
||||
required: false
|
||||
description: If present, this value will be written to the .tool-versions file
|
||||
install:
|
||||
required: false
|
||||
default: true
|
||||
description: 'if false, will not run `rtx install`'
|
||||
outputs:
|
||||
cache-hit:
|
||||
description: 'A boolean value to indicate if a cache was hit.'
|
||||
|
|
3
dist/index.js
generated
vendored
3
dist/index.js
generated
vendored
|
@ -45,7 +45,10 @@ async function run() {
|
|||
await setupRTX();
|
||||
await setEnvVars();
|
||||
await exec.exec('rtx', ['--version']);
|
||||
const install = core.getBooleanInput('install', { required: false });
|
||||
if (install) {
|
||||
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
|
@ -13,7 +13,10 @@ async function run(): Promise<void> {
|
|||
await setupRTX()
|
||||
await setEnvVars()
|
||||
await exec.exec('rtx', ['--version'])
|
||||
const install = core.getBooleanInput('install', {required: false})
|
||||
if (install) {
|
||||
await exec.exec('rtx', ['install'])
|
||||
}
|
||||
await setPaths()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue