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

retention-days-if: days expression [feat req] #301

Open
jelmd opened this issue Feb 24, 2022 · 0 comments
Open

retention-days-if: days expression [feat req] #301

jelmd opened this issue Feb 24, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@jelmd
Copy link

jelmd commented Feb 24, 2022

What would you like to be added?

A new statement like retention-days-if: (or an extension of the retention-days: would be nice, so that one can adjust the retention period on demand.

E.g.

retention-days: 1
retention-days-if: 90 github.event_name == 'push' && github.ref_name == 'main'
retention-days-if: 10 github.event_name == 'pull_request'

Last match wins.

Why is this needed?

Its is needed to keep storage area clean, to not clutter it with outdated copies of not-relevant-anymore stuff. The workaround (tasks duplication an using an if: instead) is not, what a real developer wants: error prone, clutters workflows, makes them hard to read and hard to maintain without any reason.

@jelmd jelmd added the enhancement New feature or request label Feb 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant