Fix: create codeql-action diagnostics directory
This commit is contained in:
parent
faf7528b44
commit
7f4a9481a7
3 changed files with 8 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { writeFileSync } from "fs";
|
||||
import { mkdirSync, writeFileSync } from "fs";
|
||||
import path from "path";
|
||||
|
||||
import { Config } from "./config-utils";
|
||||
|
|
@ -86,6 +86,10 @@ export function addDiagnostic(config: Config, diagnostic: DiagnosticMessage) {
|
|||
"diagnostic",
|
||||
"codeql-action",
|
||||
);
|
||||
|
||||
// Create the directory if it doesn't exist yet.
|
||||
mkdirSync(diagnosticsPath, { recursive: true });
|
||||
|
||||
const jsonPath = path.resolve(
|
||||
diagnosticsPath,
|
||||
`codeql-action-${diagnostic.timestamp}.json`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue