-
Notifications
You must be signed in to change notification settings - Fork 90
Unable to cleanup releases #44
Comments
I had the same problem recently, but I ran it before without reporting an error. |
This seems to be a possible bug in the Releases API where for some reason, the delete-older-releases/index.js Lines 134 to 137 in 0bf4e67
What is weird is that even our own releases show they have no assets now!?!?: But yet we clearly do have Release Assets: I have opened a bug report discussion for GitHub API team to look into it. Stay Tuned and perhaps upvote on that bug report. (also double-check with one of your release id's against the API URL like I did above, to see if you get assets returned or not; let me know here.) |
I was wondering what the purpose is of checking |
@shihyuho It's used to basically ensure that we can get Active Releases (those with Assets?) in order to get their Download Counts to filter against the parameter input |
Hmm, actually maybe our code needs to be improved in that section to iterate through release ids, build a map using the List Release Assets instead? But then why does the List Release example response show Assets already being displayed inline with each release, as if the List Release Assets method isn't even needed? (And it used to work and show Release Assets inline when Listing Releases, and our code indeed worked that way). PR's welcome! |
From looking at your json @thadguidry, it appears that perhaps github broke assets into 3 unique fields. All releases have the source code available in two different zip files. Those appear to be represented by the two fields tarball_url and zipball_url. Then assets would be specifically for additional "custom" assets that get added to the release. We dont have custom assets as we're using this for tagging our repo and providing release notes for the changes. The repo itself is the asset thats consumed by other things. IMO it sounds like assets doesnt need to be checked. I dont fully understand this concept/term of "Active Releases". Its not a github thing itself. If this is based on downloaded assets, we will never have an asset be downloaded. Not the custom assets or either of the tarball URLs. We simply want our releases page cleaned up after so many iterations. |
I have a repo with ~10 releases and no pre-releases. The tags and titles of the releases are the same and follow the format
v<major>.<minor>.<patch>
(semver). My config is as such:Output shows:
I have content: write permissions on the GHA with an earlier step creating new releases with each push.
What am I missing? Thanks!
The text was updated successfully, but these errors were encountered: