new error uploading to release #165616
Replies: 6 comments 9 replies
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
Hey @jeremyd2019 , 1. Split Assets Across Multiple ReleasesInstead of one big release, create several (e.g., CHUNK=1000
FILES=(build32.*) # Update as needed
REPO="yourusername/yourrepo"
for ((i=0; i<${#FILES[@]}; i+=CHUNK)); do
PART=$((i/CHUNK+1))
gh release create "v1.0.0-part$PART" "${FILES[@]:i:CHUNK}" --repo "$REPO"
done2. Restore Missing FilesIf you have local copies or backups, re-upload the missing files using the split-release script above. 3. Keep Metadata/Database Files SafeAlways upload important files like your database or metadata first or separately. This ensures they’re not lost if the upload fails partway. 4. Stay UpdatedMonitor the GitHub Changelog for any changes to release asset limits or related features. 5. Contact GitHub SupportIf this limit disrupts your workflow, contact GitHub Support and describe your use case and the impact. |
Beta Was this translation helpful? Give feedback.
-
|
For now, I have created a new release with only the most current files, which brings me below the new 1000 limit. But https://github.com/msys2/msys2-archive/releases is something else that is totally broken by this... |
Beta Was this translation helpful? Give feedback.
-
|
This recent limit also broke my workflow. I had 3000+ historic files conveniently listed in a release. I guess I need to complicate everything by splitting the URLs for no reason at all. Fantastic.
In the documentation it still says that it's a name collision issue:
|
Beta Was this translation helpful? Give feedback.
-
|
Hey @jeremyd2019 , Thanks for bringing this up — that definitely sounds frustrating, especially with your project depending on those release assets. It looks like GitHub has recently started enforcing a limit of 1000 assets per release, which is now throwing the HTTP 422: Validation Failed error during your gh release upload --clobber. Since --clobber deletes the old files before uploading new ones, it’s extra painful that it removed the existing assets and then failed to upload the replacements — effectively leaving your release broken. You mentioned having releases with over 5000 files before, which makes it pretty clear this limit wasn't in place earlier (or at least wasn’t enforced). This definitely feels like a new policy or backend change that hasn't been well communicated. Until GitHub officially responds or updates the documentation, a possible workaround could be: Splitting assets across multiple releases or tags, or Hosting larger sets of files elsewhere (like a cloud bucket or GitHub Pages) and linking to them from the release notes. That said, this situation deserves a better fix or rollback from GitHub’s side, especially since it affects active workflows. Hope they respond soon — your use case is absolutely valid, and this change has real impact. |
Beta Was this translation helpful? Give feedback.
-
|
:( We produce 1500-2000 files for each release https://github.com/armbian/community/releases ... complications. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Body
I've been using github actions and releases to store pacman repositories for years now. Today I got a new error:
Unfortunately, this was on a gh release upload --clobber, and it seems to have deleted the old files and now cannot upload their replacements. This has completely broken my project, because the database file that provides metadata is now missing.
I have other releases on this and other repositories with more than 5000 files, so it's clear that something has broken recently.
Beta Was this translation helpful? Give feedback.
All reactions