Skip to content

Commit

Permalink
Display a warning if user tries to upload over 10000 files
Browse files Browse the repository at this point in the history
  • Loading branch information
yacaovsnc committed Feb 8, 2021
1 parent a1af2e8 commit 0fbc4b7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/upload-artifact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0fbc4b7

Please sign in to comment.