Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmgross committed Aug 15, 2024
1 parent cb6558b commit acb59e4
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/merge/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ export enum Inputs {
RetentionDays = 'retention-days',
CompressionLevel = 'compression-level',
DeleteMerged = 'delete-merged',
IncludeHiddenFiles = 'include-hidden-files',
IncludeHiddenFiles = 'include-hidden-files'
}
2 changes: 1 addition & 1 deletion src/merge/input-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function getInputs(): MergeInputs {
deleteMerged,
retentionDays: 0,
compressionLevel: 6,
includeHiddenFiles,
includeHiddenFiles
} as MergeInputs

const retentionDaysStr = core.getInput(Inputs.RetentionDays)
Expand Down
5 changes: 4 additions & 1 deletion src/merge/merge-artifacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ export async function run(): Promise<void> {
options.compressionLevel = inputs.compressionLevel
}

const searchResult = await findFilesToUpload(tmpDir, inputs.includeHiddenFiles)
const searchResult = await findFilesToUpload(
tmpDir,
inputs.includeHiddenFiles
)

await uploadArtifact(
inputs.name,
Expand Down
2 changes: 1 addition & 1 deletion src/shared/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function getMultiPathLCA(searchPaths: string[]): string {

export async function findFilesToUpload(
searchPath: string,
includeHiddenFiles?: boolean,
includeHiddenFiles?: boolean
): Promise<SearchResult> {
const searchResults: string[] = []
const globber = await glob.create(
Expand Down
2 changes: 1 addition & 1 deletion src/upload/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/upload/input-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 4 additions & 1 deletion src/upload/upload-artifact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ async function deleteArtifactIfExists(artifactName: string): Promise<void> {

export async function run(): Promise<void> {
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) {
Expand Down

0 comments on commit acb59e4

Please sign in to comment.