mirror of
https://github.com/jdx/mise-action.git
synced 2026-05-21 08:41:53 +00:00
fix: use mise_dir input when specified (#339)
This commit is contained in:
parent
6f53010992
commit
4d93b33924
3 changed files with 7 additions and 1 deletions
|
|
@ -375,6 +375,9 @@ function miseDir(): string {
|
|||
const dir = core.getState('MISE_DIR')
|
||||
if (dir) return dir
|
||||
|
||||
const miseDir = core.getInput('mise_dir')
|
||||
if (miseDir) return miseDir
|
||||
|
||||
const { MISE_DATA_DIR, XDG_DATA_HOME, LOCALAPPDATA } = process.env
|
||||
if (MISE_DATA_DIR) return MISE_DATA_DIR
|
||||
if (XDG_DATA_HOME) return path.join(XDG_DATA_HOME, 'mise')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue