Commit 0fbc4b77 authored by Yang Cao's avatar Yang Cao
Browse files

Display a warning if user tries to upload over 10000 files

parent a1af2e8f
Loading
Loading
Loading
Loading
+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