Skip to content

Commit

Permalink
Filter to not accept dependabot and updatecli branchs
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Savian <[email protected]>
  • Loading branch information
vitorsavian committed Oct 4, 2023
1 parent a52b3ab commit 326516d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/validate-release
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 326516d

Please sign in to comment.