Unverified Commit ea3d5243 authored by Yang Cao's avatar Yang Cao Committed by GitHub
Browse files

Merge pull request #173 from yacaovsnc/main

Display a warning if user tries to upload over 10000 files
parents a1af2e8f e95d1b9c
Loading
Loading
Loading
Loading
+3
Changes for dist/index.js: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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
+6
Changes for src/upload-artifact.ts: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -37,6 +37,12 @@ async function run(): Promise<void> {
      )
      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