-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Files are loaded into memory instead of streamed #52
Comments
Good point and thanks. |
I'm no JS expert but probably you need to use something like this: https://www.geeksforgeeks.org/node-js-fs-createreadstream-method/ |
GitHub's APIs do not accept read stream as data parameter. I will try to use |
Ouch... that would be rather nasty if Octokit itself requires the data to be loaded in memory. 😳 I hope it's not the case. |
I have raise #55 to try to use |
It doesn't work. The action succeeded and seemingly did actually upload the files however the files are just a few bytes large and contain the path to the file in the worker rather than the correct content. |
Thanks, I will try to find another way to fix this problem later. |
This issue was marked as stale due to lack of activity. |
Hi, I checked your source code and found this line:
https://github.com/xresloader/upload-to-github-release/blob/8e0ffc2bf70a36035a8b5479d0903041cb11423f/src/index.ts#L721C37-L721C49
Releases can contain several large files so this way the runner can easily run out of memory and crash.
I found this while looking for alternatives when I discovered the same issue in another similar tool.
The text was updated successfully, but these errors were encountered: