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

Keep N most recent AND keep all younger than X days/months ago #9

Open
sandstrom opened this issue Mar 31, 2021 · 2 comments
Open

Keep N most recent AND keep all younger than X days/months ago #9

sandstrom opened this issue Mar 31, 2021 · 2 comments

Comments

@sandstrom
Copy link

Would be great if one could configure it to (1) keep the N most recent versions and (2) keep all younger than X days/months.

I think it's quite common that even if you make 20 releases over two weeks, you don't want to delete them (since they are recent), but when they are a few months old, it's fine to drop 10 of them (and only keep the 10 most recent).

Maybe something to consider?

Thanks for a great action! 🏅

@rubengees
Copy link
Member

Sure, that could be added.

Out of curiosity, what is the difference between keeping the last say 10 version and keeping the last versions from one week? If you want to roll back you have enough older versions in any case or what is the use case here?

@sandstrom
Copy link
Author

sandstrom commented Apr 6, 2021

@rubengees If you're only keeping the versions from the last week, and don't make frequent releases (say once a month), after only a week you have no rollback options.

So basically any time you have inconsistent release schedules; e.g. 10 versions released over two weeks, then nothing for 3 months, then 1 release a month for 6 months.

Or if you don't know before hand what the release cadence will look like.

In these cases it would be great if one could configure it to (1) keep the N most recent versions and (2) keep all younger than X days/months.

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

2 participants