diff --git a/dist/index.js b/dist/index.js index cbe3d641..ae4f0ef4 100644 --- a/dist/index.js +++ b/dist/index.js @@ -4078,6 +4078,9 @@ function run() { const s = searchResult.filesToUpload.length === 1 ? '' : 's'; core.info(`With the provided path, there will be ${searchResult.filesToUpload.length} file${s} uploaded`); core.debug(`Root artifact directory is ${searchResult.rootDirectory}`); + if (searchResult.filesToUpload.length > 10000) { + core.warning(`There are over 10,000 files in this artifact, consider create an archive before upload to improve the upload performance.`); + } const artifactClient = artifact_1.create(); const options = { continueOnError: false diff --git a/src/upload-artifact.ts b/src/upload-artifact.ts index 4722be12..3add2597 100644 --- a/src/upload-artifact.ts +++ b/src/upload-artifact.ts @@ -37,6 +37,12 @@ async function run(): Promise { ) core.debug(`Root artifact directory is ${searchResult.rootDirectory}`) + if (searchResult.filesToUpload.length > 10000) { + core.warning( + `There are over 10,000 files in this artifact, consider create an archive before upload to improve the upload performance.` + ) + } + const artifactClient = create() const options: UploadOptions = { continueOnError: false