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:
|
tool_versions:
|
||||||
required: false
|
required: false
|
||||||
description: If present, this value will be written to the .tool-versions file
|
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:
|
outputs:
|
||||||
cache-hit:
|
cache-hit:
|
||||||
description: 'A boolean value to indicate if a cache was hit.'
|
description: 'A boolean value to indicate if a cache was hit.'
|
||||||
|
|
5
dist/index.js
generated
vendored
5
dist/index.js
generated
vendored
|
@ -45,7 +45,10 @@ async function run() {
|
||||||
await setupRTX();
|
await setupRTX();
|
||||||
await setEnvVars();
|
await setEnvVars();
|
||||||
await exec.exec('rtx', ['--version']);
|
await exec.exec('rtx', ['--version']);
|
||||||
await exec.exec('rtx', ['install']);
|
const install = core.getBooleanInput('install', { required: false });
|
||||||
|
if (install) {
|
||||||
|
await exec.exec('rtx', ['install']);
|
||||||
|
}
|
||||||
await setPaths();
|
await setPaths();
|
||||||
}
|
}
|
||||||
exports.run = run;
|
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 setupRTX()
|
||||||
await setEnvVars()
|
await setEnvVars()
|
||||||
await exec.exec('rtx', ['--version'])
|
await exec.exec('rtx', ['--version'])
|
||||||
await exec.exec('rtx', ['install'])
|
const install = core.getBooleanInput('install', {required: false})
|
||||||
|
if (install) {
|
||||||
|
await exec.exec('rtx', ['install'])
|
||||||
|
}
|
||||||
await setPaths()
|
await setPaths()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue