Skip to content

Commit

Permalink
Replace "file(s)" with "file" or "files" (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Jan 4, 2021
1 parent 1fd4c85 commit e6bd6b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/upload-artifact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ async function run(): Promise<void> {
}
}
} else {
const s = searchResult.filesToUpload.length === 1 ? '' : 's'
core.info(
`With the provided path, there will be ${searchResult.filesToUpload.length} file(s) uploaded`
`With the provided path, there will be ${searchResult.filesToUpload.length} file${s} uploaded`
)
core.debug(`Root artifact directory is ${searchResult.rootDirectory}`)

Expand Down

0 comments on commit e6bd6b7

Please sign in to comment.