Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 19 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@
},
"dependencies": {
"fs-extra": "^11.1.1",
"glob": "^10.4.1"
"glob": "^10.4.5"
}
}
5 changes: 3 additions & 2 deletions src/actions/checkSolution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import createPacRunner from "../pac/createPacRunner";
import { authenticateAdmin, authenticateEnvironment, clearAuthentication } from "../pac/auth/authenticate";
import { RunnerParameters } from "../Parameters";
import { AuthCredentials } from "../pac/auth/authParameters";
import * as fs from "fs";
import { promises, rmdirSync, rmSync, writeFile } from "fs-extra";

export interface CheckSolutionParameters extends CommonActionParameters {
Expand Down Expand Up @@ -107,8 +108,8 @@ export async function checkSolution(parameters: CheckSolutionParameters, runnerP
const pacResult = await pac(...pacArgs);
logger.log("CheckSolution Action Result: " + pacResult);

const files = glob.sync('**/*', { cwd: outputDirectory, absolute: true });
const artifactStoreName = validator.getInput(parameters.artifactStoreName) || 'CheckSolutionLogs';
const files: string[] = glob.sync('**/*', { cwd: outputDirectory, absolute: true }).filter((file: string) => !fs.lstatSync(file).isDirectory());
const artifactStoreName = validator.getInput(parameters.artifactStoreName) || 'CodeAnalysisLogs';
Comment thread
TYLEROL marked this conversation as resolved.
await artifactStore.upload(artifactStoreName, files);

const status = isolateStatus(pacResult);
Expand Down