-
-
Notifications
You must be signed in to change notification settings - Fork 297
Open
Description
Hi!
Currently i am facing the task of triggering a build pipeline when only for commits that don't match some tag regex.
I want to exclude in my staging environment everything that does not match .*[0-9]+.[0-9]+.[0-9]+.*
Basically the check uses somethign like this:
git tag --list --sort=creatordate | grep -Ex ${regex}
In my special case i would use invert matching using grep -v
e.g. git tag --list --sort=creatordate | grep -Exv ".*[0-9]+.[0-9]+.[0-9]+.*"
My proposal: a bool tag_regex_invertthat would enable the -v option for the grep commands using tag_regex.
Metadata
Metadata
Assignees
Labels
No labels