Skip to content

delete-only-pre-release-versions: true tag as well as ignore-versions params is not workingΒ #121

@sagarc05

Description

@sagarc05

As part of our github action, we have set the delete-only-pre-release-versions tag as true. However the package is not able to differentiate between release and pre-release. Even the release packages are getting deleted.
Our semver for the release package is like 1.12.0. I noticed that in the code it matches with regex ^(0|[1-9]\d*)((\.(0|[1-9]\d*))*)$.
Even then it's deleting all the packages.
action file:
package-name: 'abc'
package-type: 'container'
token: ${{ secrets.GITHUB_TOKEN }}
min-versions-to-keep: 8
delete-only-pre-release-versions: true

We also tried setting ignore versions explicitly. However, its still deletes the packages.
action file:
package-name: 'abc'
package-type: 'container'
token: ${{ secrets.GITHUB_TOKEN }}
min-versions-to-keep: 8
ignore-versions: '^(0|[1-9]\d*)((\.(0|[1-9]\d*))*)$'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions