I am trying to remove all the published versions not downloaded or not downloaded after sometimes. I found one GH-Action actions/delete-package-versions, It allows to remove old versions or pre-released versions. It is close to what I need but not based on download number or date base but it would be okay to be see this one in action.
The problem is when I run this action, there are no visible results and I am not able to find why.
- uses: actions/delete-package-versions@v3
with:
owner: 'github'
repo: 'packages'
package-name: 'test-package'
token: ${{ secrets.PAT }}
min-versions-to-keep: 2