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

ignore-versions doesn't work #120

Open
lukjaki opened this issue Dec 7, 2023 · 3 comments
Open

ignore-versions doesn't work #120

lukjaki opened this issue Dec 7, 2023 · 3 comments

Comments

@lukjaki
Copy link

lukjaki commented Dec 7, 2023

I'm trying to set this action to remove certain packages but I want to keep all semver-correct versions. For instance 1.8.0-develop-312 should be deleted but 1.8.0 should persist.

My action setup is as follows:

package-name: xxx-xxx-xxx
package-type: npm
ignore-versions: '^(0|[1-9]\d*)\.\d+\.\d+(-.+)?$'
min-versions-to-keep: 10

but it keeps deleting all packages.

What am I doing wrong?

@lukjaki lukjaki changed the title ingore-versions doesn't work ignore-versions doesn't work Dec 7, 2023
@lukjaki lukjaki closed this as not planned Won't fix, can't repro, duplicate, stale Dec 7, 2023
@lukjaki lukjaki reopened this Dec 7, 2023
@ruben-hoenle-fnt
Copy link

same for me, this action is not usable in it's current state

@SaurabhKoverhoop
Copy link

same issue - specific versions that were to be ignored got deleted

@emmahsax
Copy link

I'm getting the same issue as well. This is my job:

      - uses: actions/delete-package-versions@v4
        with:
          ignore-versions: '.*main-ci.*'
          min-versions-to-keep: 5
          package-name: ${{ github.event.repository.name }}
          package-type: container

I've tried '.*main-ci.*' as shown, I've tried 'main-ci', '^main-ci$', etc... it continues to delete that package. It's very frustrating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants