Fix parsing of boolean

This commit is contained in:
Ashcon Partovi 2023-04-30 09:46:10 -07:00
parent 5a4722c39d
commit 9b3770f97f
3 changed files with 99 additions and 65 deletions

9
dist/action.js vendored
View file

@ -51868,16 +51868,19 @@ async function setup_default(options) {
}
// src/action.ts
var parseBoolean = function(value) {
return /^true$/i.test(value);
};
if (!process.env.RUNNER_TEMP)
process.env.RUNNER_TEMP = tmpdir();
setup_default({
customUrl: action2.getInput("bun-download-url") || undefined,
checkLatest: Boolean(action2.getInput("check-latest")),
checkLatest: parseBoolean(action2.getInput("check-latest")),
version: action2.getInput("bun-version") || "latest",
os: process.platform,
arch: process.arch,
baseline: Boolean(action2.getInput("baseline")),
profile: Boolean(action2.getInput("profile"))
baseline: parseBoolean(action2.getInput("baseline")),
profile: parseBoolean(action2.getInput("profile"))
}).then(({ version: version3, cacheHit }) => {
action2.setOutput("bun-version", version3);
action2.setOutput("cache-hit", cacheHit);