peaceiris / actions-gh-pages

GitHub Actions for GitHub Pages 🚀 Deploy static files and publish your site easily. Static-Site-Generators-friendly.
https://github.com/marketplace/actions/github-pages-action
MIT License
4.55k stars 364 forks source link

proposal: Issue a warning if content is to large #991

Open cmahnke opened 10 months ago

cmahnke commented 10 months ago

Checklist

Describe your proposal

There seem to be limitations how large a commit can be, certainly 2GB. Please issue a warning if the files to be commit are larger.

Note, I'm not talking about large files here but lots of lots of files.

Describe the solution you'd like

After the warning is implemented, consider a chunking function, like 10000 files each commit.

Describe alternatives you've considered

No response

Additional context

This error is given if a single commit is to large

2023-09-21T21:14:47.9540764Z [command]/usr/bin/git push origin --force gh-pages
2023-09-21T21:19:21.4201157Z error: RPC failed; HTTP 502 curl 22 The requested URL returned error: 502
2023-09-21T21:19:21.4202883Z send-pack: unexpected disconnect while reading sideband packet
2023-09-21T21:19:36.6064654Z fatal: the remote end hung up unexpectedly
2023-09-21T21:19:36.6069136Z Everything up-to-date
2023-09-21T21:19:36.6319682Z ##[error]Action failed with "The process '/usr/bin/git' failed with exit code 1"
2023-09-21T21:19:36.7817251Z Cleaning up orphan processes
2023-09-21T21:19:36.8558091Z Terminate orphan process: pid (2159) (git)
2023-09-21T21:19:36.8692025Z Terminate orphan process: pid (2160) (git)