Apply suggestions from code review
Co-authored-by: Henry Mercer <henry.mercer@me.com>
This commit is contained in:
parent
ef4bf4ae03
commit
8e75e1a14d
9 changed files with 16 additions and 14 deletions
|
|
@ -239,7 +239,6 @@ export interface ResolveQueriesOutput {
|
|||
export interface ResolveBuildEnvironmentOutput {
|
||||
configuration?: {
|
||||
[language: string]: {
|
||||
os?: unknown;
|
||||
[key: string]: unknown;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ import * as core from "@actions/core";
|
|||
|
||||
import {
|
||||
createStatusReportBase,
|
||||
getActionsStatus,
|
||||
getOptionalInput,
|
||||
getRequiredInput,
|
||||
getTemporaryDirectory,
|
||||
|
|
@ -58,11 +59,13 @@ async function run() {
|
|||
core.setOutput("environment", result);
|
||||
} catch (unwrappedError) {
|
||||
const error = wrapError(unwrappedError);
|
||||
core.setFailed(error.message);
|
||||
core.setFailed(
|
||||
`Failed to resolve a build environment suitable for automatically building your code. ${error.message}`
|
||||
);
|
||||
await sendStatusReport(
|
||||
await createStatusReportBase(
|
||||
ACTION_NAME,
|
||||
"aborted",
|
||||
getActionsStatus(error),
|
||||
startedAt,
|
||||
error.message,
|
||||
error.stack
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@ export async function runResolveBuildEnvironment(
|
|||
logger.startGroup(
|
||||
`Attempting to resolve build environment for ${language} in ${workingDir}`
|
||||
);
|
||||
const codeQL = await getCodeQL(cmd);
|
||||
const result = await codeQL.resolveBuildEnvironment(workingDir, language);
|
||||
const codeql = await getCodeQL(cmd);
|
||||
const result = await codeql.resolveBuildEnvironment(workingDir, language);
|
||||
logger.endGroup();
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue