fix: rename "install_dir" config to "working_directory"

This fits in better with other actions
This commit is contained in:
Jeff Dickey 2024-06-01 10:35:57 -05:00
parent 7d17151741
commit 4541e25ef8
No known key found for this signature in database
GPG key ID: 584DADE86724B407
5 changed files with 13 additions and 7 deletions

View file

@ -129,7 +129,10 @@ const testMise = async (): Promise<number> => mise(['--version'])
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()
const cwd =
core.getInput('working_directory') ||
core.getInput('install_dir') ||
process.cwd()
return exec.exec('mise', args, { cwd })
})