mirror of
https://code.forgejo.org/actions/cache.git
synced 2024-12-23 12:36:01 +01:00
Fix cache misses
This commit is contained in:
parent
d8dede30d8
commit
2fbb473cf9
4 changed files with 4 additions and 4 deletions
2
dist/restore-only/index.js
vendored
2
dist/restore-only/index.js
vendored
|
@ -3337,11 +3337,11 @@ function restoreCachev2(paths, primaryKey, restoreKeys, options, enableCrossOsAr
|
||||||
core.info(`Starting download of artifact to: ${paths[0]}`);
|
core.info(`Starting download of artifact to: ${paths[0]}`);
|
||||||
yield (0, download_cache_1.StreamExtract)(signedDownloadURL.blobs[0].signedUrl, paths[0]);
|
yield (0, download_cache_1.StreamExtract)(signedDownloadURL.blobs[0].signedUrl, paths[0]);
|
||||||
core.info(`Artifact download completed successfully.`);
|
core.info(`Artifact download completed successfully.`);
|
||||||
|
return keys[0];
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
throw new Error(`Unable to download and extract cache: ${error.message}`);
|
throw new Error(`Unable to download and extract cache: ${error.message}`);
|
||||||
}
|
}
|
||||||
return undefined;
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
2
dist/restore/index.js
vendored
2
dist/restore/index.js
vendored
|
@ -3337,11 +3337,11 @@ function restoreCachev2(paths, primaryKey, restoreKeys, options, enableCrossOsAr
|
||||||
core.info(`Starting download of artifact to: ${paths[0]}`);
|
core.info(`Starting download of artifact to: ${paths[0]}`);
|
||||||
yield (0, download_cache_1.StreamExtract)(signedDownloadURL.blobs[0].signedUrl, paths[0]);
|
yield (0, download_cache_1.StreamExtract)(signedDownloadURL.blobs[0].signedUrl, paths[0]);
|
||||||
core.info(`Artifact download completed successfully.`);
|
core.info(`Artifact download completed successfully.`);
|
||||||
|
return keys[0];
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
throw new Error(`Unable to download and extract cache: ${error.message}`);
|
throw new Error(`Unable to download and extract cache: ${error.message}`);
|
||||||
}
|
}
|
||||||
return undefined;
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
2
dist/save-only/index.js
vendored
2
dist/save-only/index.js
vendored
|
@ -3337,11 +3337,11 @@ function restoreCachev2(paths, primaryKey, restoreKeys, options, enableCrossOsAr
|
||||||
core.info(`Starting download of artifact to: ${paths[0]}`);
|
core.info(`Starting download of artifact to: ${paths[0]}`);
|
||||||
yield (0, download_cache_1.StreamExtract)(signedDownloadURL.blobs[0].signedUrl, paths[0]);
|
yield (0, download_cache_1.StreamExtract)(signedDownloadURL.blobs[0].signedUrl, paths[0]);
|
||||||
core.info(`Artifact download completed successfully.`);
|
core.info(`Artifact download completed successfully.`);
|
||||||
|
return keys[0];
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
throw new Error(`Unable to download and extract cache: ${error.message}`);
|
throw new Error(`Unable to download and extract cache: ${error.message}`);
|
||||||
}
|
}
|
||||||
return undefined;
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
2
dist/save/index.js
vendored
2
dist/save/index.js
vendored
|
@ -3337,11 +3337,11 @@ function restoreCachev2(paths, primaryKey, restoreKeys, options, enableCrossOsAr
|
||||||
core.info(`Starting download of artifact to: ${paths[0]}`);
|
core.info(`Starting download of artifact to: ${paths[0]}`);
|
||||||
yield (0, download_cache_1.StreamExtract)(signedDownloadURL.blobs[0].signedUrl, paths[0]);
|
yield (0, download_cache_1.StreamExtract)(signedDownloadURL.blobs[0].signedUrl, paths[0]);
|
||||||
core.info(`Artifact download completed successfully.`);
|
core.info(`Artifact download completed successfully.`);
|
||||||
|
return keys[0];
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
throw new Error(`Unable to download and extract cache: ${error.message}`);
|
throw new Error(`Unable to download and extract cache: ${error.message}`);
|
||||||
}
|
}
|
||||||
return undefined;
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue