Fix: skip uploading empty files
This commit is contained in:
parent
664a7c20c1
commit
99e2100a1f
@ -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