Skip to content

Commit

Permalink
fix: log mtime as creation date
Browse files Browse the repository at this point in the history
  • Loading branch information
axe312ger committed Sep 26, 2021
1 parent 46a3550 commit 35e7b01
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/restore/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5284,7 +5284,7 @@ function restoreCache(paths, primaryKey, restoreKeys) {
const cmd = `lz4 -d -v -c ${cachePath} | tar xf - -C ${baseDir}`;
core.info([
`Restoring cache: ${cacheFile.name}`,
`Created: ${(_a = cacheFile.stats) === null || _a === void 0 ? void 0 : _a.birthtime}`,
`Created: ${(_a = cacheFile.stats) === null || _a === void 0 ? void 0 : _a.mtime}`,
`Size: ${pretty_bytes_1.default(((_b = cacheFile.stats) === null || _b === void 0 ? void 0 : _b.size) || 0)}`
].join("\n"));
const createCacheDirPromise = execAsync(cmd);
Expand Down
2 changes: 1 addition & 1 deletion dist/save/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5374,7 +5374,7 @@ function restoreCache(paths, primaryKey, restoreKeys) {
const cmd = `lz4 -d -v -c ${cachePath} | tar xf - -C ${baseDir}`;
core.info([
`Restoring cache: ${cacheFile.name}`,
`Created: ${(_a = cacheFile.stats) === null || _a === void 0 ? void 0 : _a.birthtime}`,
`Created: ${(_a = cacheFile.stats) === null || _a === void 0 ? void 0 : _a.mtime}`,
`Size: ${pretty_bytes_1.default(((_b = cacheFile.stats) === null || _b === void 0 ? void 0 : _b.size) || 0)}`
].join("\n"));
const createCacheDirPromise = execAsync(cmd);
Expand Down
2 changes: 1 addition & 1 deletion src/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export async function restoreCache(
core.info(
[
`Restoring cache: ${cacheFile.name}`,
`Created: ${cacheFile.stats?.birthtime}`,
`Created: ${cacheFile.stats?.mtime}`,
`Size: ${prettyBytes(cacheFile.stats?.size || 0)}`
].join("\n")
);
Expand Down

0 comments on commit 35e7b01

Please sign in to comment.