mirror of
https://github.com/jdx/mise-action.git
synced 2026-05-14 13:50:33 +00:00
Add reshim flag to reshim after setup (#202)
This commit is contained in:
parent
13abe502c3
commit
883a83c54f
6 changed files with 5062 additions and 7690 deletions
|
|
@ -23,6 +23,9 @@ async function run(): Promise<void> {
|
|||
const version = core.getInput('version')
|
||||
await setupMise(version)
|
||||
await setEnvVars()
|
||||
if (core.getBooleanInput('reshim')) {
|
||||
await miseReshim()
|
||||
}
|
||||
await testMise()
|
||||
if (core.getBooleanInput('install')) {
|
||||
await miseInstall()
|
||||
|
|
@ -209,6 +212,7 @@ const testMise = async (): Promise<number> => mise(['--version'])
|
|||
const miseInstall = async (): Promise<number> =>
|
||||
mise([`install ${core.getInput('install_args')}`])
|
||||
const miseLs = async (): Promise<number> => mise([`ls`])
|
||||
const miseReshim = async (): Promise<number> => mise([`reshim`, `--all`])
|
||||
const mise = async (args: string[]): Promise<number> =>
|
||||
core.group(`Running mise ${args.join(' ')}`, async () => {
|
||||
const cwd =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue