mirror of
https://code.forgejo.org/actions/cache.git
synced 2024-11-06 06:25:49 -05:00
* Remove cache checksum debug - close #24 * Remove cache checksum debug on save * Fix formatting
This commit is contained in:
parent
d384987622
commit
25e0c8faac
2 changed files with 0 additions and 14 deletions
|
@ -94,13 +94,6 @@ async function run() {
|
||||||
core.info(
|
core.info(
|
||||||
`Cache restored from key:${cacheEntry && cacheEntry.cacheKey}`
|
`Cache restored from key:${cacheEntry && cacheEntry.cacheKey}`
|
||||||
);
|
);
|
||||||
|
|
||||||
try {
|
|
||||||
core.info("Cache Checksum:");
|
|
||||||
await exec(`md5sum`, [`${archivePath}`]);
|
|
||||||
} catch (error) {
|
|
||||||
core.debug(`Failed to checkum with ${error}`);
|
|
||||||
}
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.warning(error.message);
|
core.warning(error.message);
|
||||||
utils.setCacheHitOutput(false);
|
utils.setCacheHitOutput(false);
|
||||||
|
|
|
@ -66,13 +66,6 @@ async function run() {
|
||||||
|
|
||||||
const stream = fs.createReadStream(archivePath);
|
const stream = fs.createReadStream(archivePath);
|
||||||
await cacheHttpClient.saveCache(stream, primaryKey);
|
await cacheHttpClient.saveCache(stream, primaryKey);
|
||||||
|
|
||||||
try {
|
|
||||||
core.info("Cache Checksum:");
|
|
||||||
await exec(`md5sum`, [`${archivePath}`]);
|
|
||||||
} catch (error) {
|
|
||||||
core.debug(`Failed to checkum with ${error}`);
|
|
||||||
}
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.warning(error.message);
|
core.warning(error.message);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue