fix: pass empty array instead undefined

This commit is contained in:
Jozef Steinhübl 2024-11-16 12:00:11 +01:00
parent 5f6f054bec
commit dd6ac17783
No known key found for this signature in database
GPG key ID: E6BC90C91973B08F

View file

@ -25,7 +25,7 @@ runAction({
readVersionFromFile(getInput("bun-version-file")) || readVersionFromFile(getInput("bun-version-file")) ||
undefined, undefined,
customUrl: getInput("bun-download-url") || undefined, customUrl: getInput("bun-download-url") || undefined,
registries: registries.length > 0 ? registries : undefined, registries: registries,
noCache: getBooleanInput("no-cache") || false, noCache: getBooleanInput("no-cache") || false,
}) })
.then(({ version, revision, bunPath, url, cacheHit }) => { .then(({ version, revision, bunPath, url, cacheHit }) => {