Skip to content

Commit

Permalink
wire post action metadata update
Browse files Browse the repository at this point in the history
  • Loading branch information
gmichelo committed Jan 26, 2024
1 parent dd773df commit 367f31b
Show file tree
Hide file tree
Showing 5 changed files with 27,071 additions and 15 deletions.
3 changes: 3 additions & 0 deletions dist/index/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27010,6 +27010,7 @@ var io = __nccwpck_require__(7436);


const Env_CacheRoot = "NSC_CACHE_PATH";
const StatePathsKey = "paths";
function resolveHome(filepath) {
// Ugly, but should work
const home = process.env["HOME"] || "~";
Expand Down Expand Up @@ -27094,6 +27095,8 @@ async function main() {
metadata.preExecution.usage[p.pathInCache] = await getCacheUtil(p.pathInCache);
}
writeCacheMetadata(localCachePath, metadata);
// Save the list of cache paths to actions state for the post-cache action
core.saveState(StatePathsKey, cachePaths);
const cacheUtilInfo = await getCacheSummaryUtil(localCachePath);
core.info(`Total available cache space is ${cacheUtilInfo.size}, and ${cacheUtilInfo.used} have been used.`);
}
Expand Down
Loading

0 comments on commit 367f31b

Please sign in to comment.