Skip to content

Commit e6bd6b7

Browse files
authored
Replace "file(s)" with "file" or "files" (#159)
1 parent 1fd4c85 commit e6bd6b7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/upload-artifact.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ async function run(): Promise<void> {
3131
}
3232
}
3333
} else {
34+
const s = searchResult.filesToUpload.length === 1 ? '' : 's'
3435
core.info(
35-
`With the provided path, there will be ${searchResult.filesToUpload.length} file(s) uploaded`
36+
`With the provided path, there will be ${searchResult.filesToUpload.length} file${s} uploaded`
3637
)
3738
core.debug(`Root artifact directory is ${searchResult.rootDirectory}`)
3839

0 commit comments

Comments
 (0)