Deploy version 1.1.0
This commit is contained in:
4
dist/index.js
vendored
4
dist/index.js
vendored
@@ -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();
|
||||
|
Reference in New Issue
Block a user