Extract status file path helper

This commit is contained in:
Henry Mercer
2026-02-17 13:38:11 +00:00
parent 657f337cd1
commit fa56ea8dc0
3 changed files with 27 additions and 21 deletions
+6 -3
View File
@@ -165559,14 +165559,17 @@ var path7 = __toESM(require("path"));
var actionsCache2 = __toESM(require_cache5());
var MAX_CACHE_OPERATION_MS = 3e4;
var STATUS_FILE_NAME = "overlay-status.json";
async function saveOverlayStatus(codeql, languages, diskUsage, status, logger) {
const cacheKey = await getCacheKey(codeql, languages, diskUsage);
const statusFile = path7.join(
function getStatusFilePath(languages) {
return path7.join(
getTemporaryDirectory(),
"overlay-status",
[...languages].sort().join("+"),
STATUS_FILE_NAME
);
}
async function saveOverlayStatus(codeql, languages, diskUsage, status, logger) {
const cacheKey = await getCacheKey(codeql, languages, diskUsage);
const statusFile = getStatusFilePath(languages);
await fs6.promises.mkdir(path7.dirname(statusFile), { recursive: true });
await fs6.promises.writeFile(statusFile, JSON.stringify(status));
try {