mirror of
https://github.com/jdx/mise-action.git
synced 2026-05-14 22:00:34 +00:00
Add API to enable the experimental features (#220)
* Add option to enable experimental features * Add .rtx.toml to install the tools necessary to work on this repository
This commit is contained in:
parent
867a9c3ff5
commit
10161a135f
5 changed files with 18 additions and 0 deletions
|
|
@ -41,6 +41,7 @@ async function setEnvVars(): Promise<void> {
|
|||
}
|
||||
set('RTX_TRUSTED_CONFIG_PATHS', process.cwd())
|
||||
set('RTX_YES', '1')
|
||||
set('RTX_EXPERIMENTAL', getExperimental() ? '1' : '0')
|
||||
|
||||
const shimsDir = path.join(rtxDir(), 'shims')
|
||||
core.info(`Adding ${shimsDir} to PATH`)
|
||||
|
|
@ -87,6 +88,11 @@ async function setupRTX(version: string | undefined): Promise<void> {
|
|||
core.addPath(rtxBinDir)
|
||||
}
|
||||
|
||||
function getExperimental(): boolean {
|
||||
const experimentalString = core.getInput('experimental')
|
||||
return experimentalString === 'true' ? true : false
|
||||
}
|
||||
|
||||
async function setToolVersions(): Promise<void> {
|
||||
const toolVersions = core.getInput('tool_versions')
|
||||
if (toolVersions) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue