13
0
Fork 0
mirror of https://github.com/jdx/mise-action.git synced 2026-07-03 01:59:29 +00:00

fix: parse bootstrap cache input as boolean

This commit is contained in:
default 2026-06-17 02:09:13 +00:00
parent a1e02f3a39
commit 7c583287ea
3 changed files with 7 additions and 7 deletions

6
dist/index.js generated vendored
View file

@ -89800,7 +89800,7 @@ async function processCacheKeyTemplate(template) {
// Get all available variables
const version = getInput('version');
const installArgs = getInput('install_args');
const bootstrap = getInput('bootstrap');
const bootstrap = getBooleanInput('bootstrap');
const bootstrapSkip = getInput('bootstrap_skip');
const bootstrapArgs = getInput('bootstrap_args');
const cacheKeyPrefix = getInput('cache_key_prefix') || 'mise-v1';
@ -89821,10 +89821,10 @@ async function processCacheKeyTemplate(template) {
}
}
let bootstrapHash = '';
if (bootstrap === 'true' || bootstrapSkip || bootstrapArgs) {
if (bootstrap) {
bootstrapHash = crypto$1
.createHash('sha256')
.update([bootstrap, bootstrapSkip, bootstrapArgs].join('\0'))
.update([String(bootstrap), bootstrapSkip, bootstrapArgs].join('\0'))
.digest('hex');
}
// Prepare base template data

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View file

@ -721,7 +721,7 @@ async function processCacheKeyTemplate(template: string): Promise<string> {
// Get all available variables
const version = core.getInput('version')
const installArgs = core.getInput('install_args')
const bootstrap = core.getInput('bootstrap')
const bootstrap = core.getBooleanInput('bootstrap')
const bootstrapSkip = core.getInput('bootstrap_skip')
const bootstrapArgs = core.getInput('bootstrap_args')
const cacheKeyPrefix = core.getInput('cache_key_prefix') || 'mise-v1'
@ -745,10 +745,10 @@ async function processCacheKeyTemplate(template: string): Promise<string> {
}
let bootstrapHash = ''
if (bootstrap === 'true' || bootstrapSkip || bootstrapArgs) {
if (bootstrap) {
bootstrapHash = crypto
.createHash('sha256')
.update([bootstrap, bootstrapSkip, bootstrapArgs].join('\0'))
.update([String(bootstrap), bootstrapSkip, bootstrapArgs].join('\0'))
.digest('hex')
}