From 36814ffd7de320e2c1558c36552af13605309c2d Mon Sep 17 00:00:00 2001 From: Gitea Actions Date: Thu, 1 May 2025 10:47:07 +0000 Subject: [PATCH] Deploy version 1.0.2 --- dist/index.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index 5bd359e..e9ae6cc 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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); }