Skip to content
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

Is it possible to delete superfluous artifacts from a snapshot version? #71

Open
carlislefox opened this issue Mar 31, 2022 · 5 comments

Comments

@carlislefox
Copy link

Hi there,

Sorry to raise an issue for this but I can't figure it out using the readme alone. When you publish snapshots using maven you end up with an entire set of artifacts against a package with a different timestamp for every single build, this is resulting in me having a package version of say, 0.0.2-SNAPSHOT but it has a billion artifacts underneath it, a full set from each time the snapshot was built.

Is it possible to retain only the latest set of artifacts against a package version with this action? I only ever need the latest snapshot, I'm going to max my GitHub storage on one snapshot version at this rate :(

Thanks for your time,
Fhox

@woj-tek
Copy link

woj-tek commented Jun 13, 2022

Have you figured out how to do this?

@rvesse
Copy link

rvesse commented Jul 14, 2022

https://github.community/t/github-actions-to-purge-maven-repo-hosted-via-github-packages/165472/2

Looks like this isn't supported because they manage all the timestamped SNAPSHOT versions as a single version from GitHub Packages perspective

@woj-tek
Copy link

woj-tek commented Jul 14, 2022

This is kinda terrible and... somewhat against maven principle? I'd say it's a bug on GitHub part...

@ArturJarosz
Copy link

ArturJarosz commented Nov 25, 2023

Any news on that on? Or any way to remove accumulated SNAPSHOTs and to keep only newest one ?

@beradrian
Copy link

beradrian commented Feb 16, 2024

Two years after and there's not even a workaround for this?
From what I understood the only workaround is to completely delete the version, which seems a little bit too much. It cannot apply for public packages and maybe you still want to keep x latest versions, not only the last.
https://stackoverflow.com/questions/68521637/how-to-delete-old-snapshot-artifacts-from-github-packages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants