mirror of
https://github.com/github/codeql-action.git
synced 2026-04-29 18:30:14 +00:00
Extract status file path helper
This commit is contained in:
Generated
+6
-3
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user