Auto-fix linting errors

This commit is contained in:
Angela P Wen 2023-07-25 10:29:00 +02:00
parent eff6331393
commit b16296be30
52 changed files with 1182 additions and 1172 deletions

View file

@ -34,7 +34,7 @@ async function sendCompletedStatusReport(
startedAt: Date,
allLanguages: string[],
failingLanguage?: string,
cause?: Error
cause?: Error,
) {
initializeEnvironment(getActionVersion());
@ -44,7 +44,7 @@ async function sendCompletedStatusReport(
status,
startedAt,
cause?.message,
cause?.stack
cause?.stack,
);
const statusReport: AutobuildStatusReport = {
...statusReportBase,
@ -62,7 +62,7 @@ async function run() {
try {
if (
!(await sendStatusReport(
await createStatusReportBase("autobuild", "starting", startedAt)
await createStatusReportBase("autobuild", "starting", startedAt),
))
) {
return;
@ -74,7 +74,7 @@ async function run() {
const config = await configUtils.getConfig(getTemporaryDirectory(), logger);
if (config === undefined) {
throw new Error(
"Config file could not be found at expected location. Has the 'init' action been called?"
"Config file could not be found at expected location. Has the 'init' action been called?",
);
}
@ -83,7 +83,7 @@ async function run() {
const workingDirectory = getOptionalInput("working-directory");
if (workingDirectory) {
logger.info(
`Changing autobuilder working directory to ${workingDirectory}`
`Changing autobuilder working directory to ${workingDirectory}`,
);
process.chdir(workingDirectory);
}
@ -98,13 +98,13 @@ async function run() {
} catch (unwrappedError) {
const error = wrapError(unwrappedError);
core.setFailed(
`We were unable to automatically build your code. Please replace the call to the autobuild action with your custom build steps. ${error.message}`
`We were unable to automatically build your code. Please replace the call to the autobuild action with your custom build steps. ${error.message}`,
);
await sendCompletedStatusReport(
startedAt,
languages ?? [],
currentLanguage,
error
error,
);
return;
}