Merge pull request #102 from Loyalsoldier/fix-file-empty
Fix: skip uploading empty files
This commit is contained in:
		
						commit
						0c6fec2cea
					
				@ -67,6 +67,10 @@ async function upload_to_release(
 | 
				
			|||||||
    return
 | 
					    return
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  const file_size = stat.size
 | 
					  const file_size = stat.size
 | 
				
			||||||
 | 
					  if (file_size === 0) {
 | 
				
			||||||
 | 
					    core.debug(`Skipping ${file}, since its size is 0`)
 | 
				
			||||||
 | 
					    return
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
  const file_bytes: any = fs.createReadStream(file)
 | 
					  const file_bytes: any = fs.createReadStream(file)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // Check for duplicates.
 | 
					  // Check for duplicates.
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user