From acb59e47763b6e601a344d04cf3c082ee336b709 Mon Sep 17 00:00:00 2001 From: Josh Gross Date: Thu, 15 Aug 2024 16:31:57 -0400 Subject: [PATCH] `lint` --- src/merge/constants.ts | 2 +- src/merge/input-helper.ts | 2 +- src/merge/merge-artifacts.ts | 5 ++++- src/shared/search.ts | 2 +- src/upload/constants.ts | 2 +- src/upload/input-helper.ts | 2 +- src/upload/upload-artifact.ts | 5 ++++- 7 files changed, 13 insertions(+), 7 deletions(-) diff --git a/src/merge/constants.ts b/src/merge/constants.ts index 7869ab1a..1a24021e 100644 --- a/src/merge/constants.ts +++ b/src/merge/constants.ts @@ -6,5 +6,5 @@ export enum Inputs { RetentionDays = 'retention-days', CompressionLevel = 'compression-level', DeleteMerged = 'delete-merged', - IncludeHiddenFiles = 'include-hidden-files', + IncludeHiddenFiles = 'include-hidden-files' } diff --git a/src/merge/input-helper.ts b/src/merge/input-helper.ts index cc26a966..0c36735b 100644 --- a/src/merge/input-helper.ts +++ b/src/merge/input-helper.ts @@ -19,7 +19,7 @@ export function getInputs(): MergeInputs { deleteMerged, retentionDays: 0, compressionLevel: 6, - includeHiddenFiles, + includeHiddenFiles } as MergeInputs const retentionDaysStr = core.getInput(Inputs.RetentionDays) diff --git a/src/merge/merge-artifacts.ts b/src/merge/merge-artifacts.ts index 8562e869..dc39ff76 100644 --- a/src/merge/merge-artifacts.ts +++ b/src/merge/merge-artifacts.ts @@ -62,7 +62,10 @@ export async function run(): Promise { options.compressionLevel = inputs.compressionLevel } - const searchResult = await findFilesToUpload(tmpDir, inputs.includeHiddenFiles) + const searchResult = await findFilesToUpload( + tmpDir, + inputs.includeHiddenFiles + ) await uploadArtifact( inputs.name, diff --git a/src/shared/search.ts b/src/shared/search.ts index 465507f0..c468f148 100644 --- a/src/shared/search.ts +++ b/src/shared/search.ts @@ -81,7 +81,7 @@ function getMultiPathLCA(searchPaths: string[]): string { export async function findFilesToUpload( searchPath: string, - includeHiddenFiles?: boolean, + includeHiddenFiles?: boolean ): Promise { const searchResults: string[] = [] const globber = await glob.create( diff --git a/src/upload/constants.ts b/src/upload/constants.ts index 2c281ded..8407bc1b 100644 --- a/src/upload/constants.ts +++ b/src/upload/constants.ts @@ -6,7 +6,7 @@ export enum Inputs { RetentionDays = 'retention-days', CompressionLevel = 'compression-level', Overwrite = 'overwrite', - IncludeHiddenFiles = 'include-hidden-files', + IncludeHiddenFiles = 'include-hidden-files' } export enum NoFileOptions { diff --git a/src/upload/input-helper.ts b/src/upload/input-helper.ts index f1912f1c..a867a210 100644 --- a/src/upload/input-helper.ts +++ b/src/upload/input-helper.ts @@ -29,7 +29,7 @@ export function getInputs(): UploadInputs { searchPath: path, ifNoFilesFound: noFileBehavior, overwrite: overwrite, - includeHiddenFiles: includeHiddenFiles, + includeHiddenFiles: includeHiddenFiles } as UploadInputs const retentionDaysStr = core.getInput(Inputs.RetentionDays) diff --git a/src/upload/upload-artifact.ts b/src/upload/upload-artifact.ts index c6368bfc..6c06d535 100644 --- a/src/upload/upload-artifact.ts +++ b/src/upload/upload-artifact.ts @@ -24,7 +24,10 @@ async function deleteArtifactIfExists(artifactName: string): Promise { export async function run(): Promise { const inputs = getInputs() - const searchResult = await findFilesToUpload(inputs.searchPath, inputs.includeHiddenFiles) + const searchResult = await findFilesToUpload( + inputs.searchPath, + inputs.includeHiddenFiles + ) if (searchResult.filesToUpload.length === 0) { // No files were found, different use cases warrant different types of behavior if nothing is found switch (inputs.ifNoFilesFound) {