diff --git a/scripts/validate-release b/scripts/validate-release index 8fac78bd4b2..16f926f72f9 100755 --- a/scripts/validate-release +++ b/scripts/validate-release @@ -32,7 +32,7 @@ function get-module-version() { } function check_release_branch() { - TAG_BRANCH=$(git branch --all -q --contains $GIT_TAG | grep origin | grep -v origin$ | grep -v "HEAD" | sed -e 's/^[[:space:]]*//') + TAG_BRANCH=$(git branch --all -q --contains $GIT_TAG | grep origin | grep -vE 'dependabot|updatecli' | grep -v origin$ | grep -v "HEAD" | sed -e 's/^[[:space:]]*//') if [ "$TAG_BRANCH" == "remotes/origin/master" ]; then K8S_VERSION_GO_MOD=$(get-module-version k8s.io/kubernetes | cut -d. -f1-2) if [ "v$MAJOR.$MINOR" == "$K8S_VERSION_GO_MOD" ]; then