1
Fork 0
mirror of https://gitea.com/actions/upload-artifact.git synced 2024-11-09 18:25:58 +01:00

Replace "file(s)" with "file" or "files" (#159)

This commit is contained in:
Hugo van Kemenade 2021-01-04 12:24:12 +02:00 committed by GitHub
parent 1fd4c858f9
commit e6bd6b7749
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}`)