Deploy version 1.1.0

This commit is contained in:
Gitea Actions
2025-05-03 13:03:13 +00:00
parent 36814ffd7d
commit eb78d55bab

4
dist/index.js vendored
View File

@@ -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();