From 067949da970731ab0d6eacff43ef1cb20ff672d1 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Tue, 29 Dec 2020 10:19:36 +0200 Subject: [PATCH] Replace "file(s)" with "file" or "files" --- src/upload-artifact.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/upload-artifact.ts b/src/upload-artifact.ts index d7011bc..4722be1 100644 --- a/src/upload-artifact.ts +++ b/src/upload-artifact.ts @@ -31,8 +31,9 @@ async function run(): Promise { } } } 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}`)