1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/upload-artifact.git synced 2024-11-08 10:22:39 +00:00

Display a warning if user tries to upload over 10000 files

This commit is contained in:
Yang Cao 2021-02-08 15:09:20 -05:00
parent a1af2e8f43
commit 0fbc4b771a

View file

@ -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