I asked this action to upload a 0 sized file, and it tried to repeatedly upload this file:
Start uploading asset: _release/stack-linux(size: 0) ...
Upload asset: stack-linux failed => Validation Failed: {"resource":"ReleaseAsset","code":"custom","field":"size","message":"size must be greater than or equal to 1"}
HttpError: Validation Failed: {"resource":"ReleaseAsset","code":"custom","field":"size","message":"size must be greater than or equal to 1"}
at /home/runner/work/_actions/xresloader/upload-to-github-release/v1/lib/index.js:5143:21
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async run (/home/runner/work/_actions/xresloader/upload-to-github-release/v1/lib/index.js:20417:40)
Start uploading asset(1 retry): _release/stack-linux(size: 0) ...
============================= v4 API: query { repository (owner:"check-spelling", name:"stack") } =============================
Upload asset(1 retry): stack-linux failed => Validation Failed: {"resource":"ReleaseAsset","code":"custom","field":"size","message":"size must be greater than or equal to 1"}
HttpError: Validation Failed: {"resource":"ReleaseAsset","code":"custom","field":"size","message":"size must be greater than or equal to 1"}
at /home/runner/work/_actions/xresloader/upload-to-github-release/v1/lib/index.js:5143:21
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async run (/home/runner/work/_actions/xresloader/upload-to-github-release/v1/lib/index.js:20417:40)
Start uploading asset(2 retry): _release/stack-linux(size: 0) ...
Describe the bug
I asked this action to upload a 0 sized file, and it tried to repeatedly upload this file:
To Reproduce Steps to reproduce the behavior:
This workflow creates a 0 byte file and then tries to publish a release using it: https://github.com/check-spelling/stack/blob/2ab72aa0c81ae69a46df1443e1fc61e619012020/.github/workflows/integration-tests.yml
Here's the run https://github.com/check-spelling/stack/runs/8241496509?check_suite_focus=true
Expected behavior If it isn't legal to publish a 0 byte file (and this appears to be the case), then the action should fail fast.
Screenshots