rename rtx -> mise
This commit is contained in:
parent
f055f78b94
commit
a05bde45a6
2 changed files with 4 additions and 4 deletions
4
dist/index.js
generated
vendored
4
dist/index.js
generated
vendored
|
@ -82944,7 +82944,7 @@ async function run() {
|
|||
await setEnvVars();
|
||||
await testMise();
|
||||
if (core.getBooleanInput('install')) {
|
||||
await rtxInstall();
|
||||
await miseInstall();
|
||||
}
|
||||
}
|
||||
catch (err) {
|
||||
|
@ -83028,7 +83028,7 @@ function getOS() {
|
|||
}
|
||||
}
|
||||
const testMise = async () => mise(['--version']);
|
||||
const rtxInstall = async () => mise(['install']);
|
||||
const miseInstall = async () => mise(['install']);
|
||||
const mise = async (args) => core.group(`Running mise ${args.join(' ')}`, async () => {
|
||||
const cwd = core.getInput('install_dir') || process.cwd();
|
||||
return exec.exec('mise', args, { cwd });
|
||||
|
|
|
@ -23,7 +23,7 @@ async function run(): Promise<void> {
|
|||
await setEnvVars()
|
||||
await testMise()
|
||||
if (core.getBooleanInput('install')) {
|
||||
await rtxInstall()
|
||||
await miseInstall()
|
||||
}
|
||||
} catch (err) {
|
||||
if (err instanceof Error) core.setFailed(err.message)
|
||||
|
@ -117,7 +117,7 @@ function getOS(): string {
|
|||
}
|
||||
|
||||
const testMise = async (): Promise<number> => mise(['--version'])
|
||||
const rtxInstall = async (): Promise<number> => mise(['install'])
|
||||
const miseInstall = async (): Promise<number> => mise(['install'])
|
||||
const mise = async (args: string[]): Promise<number> =>
|
||||
core.group(`Running mise ${args.join(' ')}`, async () => {
|
||||
const cwd = core.getInput('install_dir') || process.cwd()
|
||||
|
|
Loading…
Add table
Reference in a new issue