Deploy version 1.0.2

This commit is contained in:
Gitea Actions
2025-05-01 10:47:07 +00:00
parent 75e2675d7b
commit 36814ffd7d

12
dist/index.js vendored
View File

@@ -26229,11 +26229,17 @@ function formatDuration(ms) {
}
function expandPath(p) {
if (p === "~") {
return os.homedir();
}
if (p.startsWith("~/") || p.startsWith("~\\")) {
p = os.homedir();
} else if (p.startsWith("~/") || p.startsWith("~\\")) {
p = import_path.default.join(os.homedir(), p.slice(2));
}
p = p.replace(
/\$([A-Z_][A-Z0-9_]+)|\$\{([A-Z_][A-Z0-9_]+)\}/gi,
(_, var1, var2) => {
const val = process.env[var1 || var2];
return val !== void 0 ? val : "";
}
);
return import_path.default.resolve(p);
}