From eb78d55babe075a07c727689ee9dfb7be0374c04 Mon Sep 17 00:00:00 2001 From: Gitea Actions Date: Sat, 3 May 2025 13:03:13 +0000 Subject: [PATCH] Deploy version 1.1.0 --- dist/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index e9ae6cc..bd8d377 100644 --- a/dist/index.js +++ b/dist/index.js @@ -26245,7 +26245,7 @@ function expandPath(p) { // src/cache.ts async function uploadCache(options, owner, repo, key, filePath) { - const url = `${options.serverUrl}/cache/${owner}/${repo}/${key}`; + const url = `${options.serverUrl}/cache/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}/${encodeURIComponent(key)}`; const fileStats = await fs2.promises.stat(filePath); console.log(` \u2B06\uFE0F Uploading cache: ${filePath}`); @@ -26274,7 +26274,7 @@ async function uploadCache(options, owner, repo, key, filePath) { console.log(`\u26A1 Speed: ${formatSpeed(size, duration)}`); } async function downloadCache(options, owner, repo, key, destinationPath) { - const url = `${options.serverUrl}/cache/${owner}/${repo}/${key}`; + const url = `${options.serverUrl}/cache/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}/${encodeURIComponent(key)}`; console.log(` \u2B07\uFE0F Downloading cache to: ${destinationPath}`); const startTime = Date.now();