You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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*))*)$'
The text was updated successfully, but these errors were encountered:
The code currently filters on "name", which for packages is the version but for containers is the SHA...so nothing matches the ignore regex and everything is deleted
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*))*)$'
The text was updated successfully, but these errors were encountered: