mirror of
https://github.com/jdx/mise-action.git
synced 2026-05-20 08:21:52 +00:00
parent
c94f0bf9e5
commit
367a97c7a9
3 changed files with 460 additions and 452 deletions
|
|
@ -62,6 +62,7 @@ async function restoreMiseCache(): Promise<string | undefined> {
|
|||
core.startGroup('Restoring mise cache')
|
||||
const version = core.getInput('version')
|
||||
const installArgs = core.getInput('install_args')
|
||||
const { MISE_ENV } = process.env
|
||||
const cachePath = miseDir()
|
||||
const fileHash = await glob.hashFiles(
|
||||
[
|
||||
|
|
@ -97,6 +98,9 @@ async function restoreMiseCache(): Promise<string | undefined> {
|
|||
if (version) {
|
||||
primaryKey = `${primaryKey}-${version}`
|
||||
}
|
||||
if (MISE_ENV) {
|
||||
primaryKey = `${primaryKey}-${MISE_ENV}`
|
||||
}
|
||||
if (installArgs) {
|
||||
const tools = installArgs
|
||||
.split(' ')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue