NuGet Package Maintenance: Delete packages automatically with retention policies #105099
Unanswered
julianxhokaxhiu
asked this question in
Packages
Replies: 1 comment 1 reply
-
For anyone else crossing this in the future, I managed to implement my own pipeline which does exactly this. See https://github.com/julianxhokaxhiu/julianxhokaxhiu/blob/master/.github/workflows/rotate-nuget-packages.yml |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Product Feedback
Body
Hello,
I've recently migrated my Azure DevOps pipelines to Github Actions, and I noticed one core feature which was super useful on Azure is not yet available on Github for Packages.
Is it possible to implement a way to automatically delete packages based on retention policies? See https://learn.microsoft.com/en-us/azure/devops/artifacts/how-to/delete-and-recover-packages?view=azure-devops&tabs=nuget#delete-packages-automatically-with-retention-policies for more information.
I used to configure the retention for example to keep only one version and purge anything else that was older than 15 days.
Thank you in advance and best regards,
Julian
Beta Was this translation helpful? Give feedback.
All reactions