Add reshim flag to reshim after setup (#202)

This commit is contained in:
Andrew Driggs 2025-06-17 00:03:19 -07:00 committed by GitHub
parent 13abe502c3
commit 883a83c54f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 5062 additions and 7690 deletions

View file

@ -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 =