From 4fc0a8d481525b120d62302b24f6c2bb3047ddb6 Mon Sep 17 00:00:00 2001
From: Morgan Hoffman <hoffmanm@vt.edu>
Date: Thu, 27 Jul 2023 20:14:51 +0000
Subject: [PATCH] Revert "Anchor the version search in order to not pick up the
 version attribute of dependencies."

This reverts commit bece0413cef6d57c551b73c3cd2046d6f4519204
---
 building-blocks/helm.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/building-blocks/helm.yml b/building-blocks/helm.yml
index c152381..675154d 100644
--- a/building-blocks/helm.yml
+++ b/building-blocks/helm.yml
@@ -7,7 +7,7 @@
   script:
     - git fetch -q
     - export HELM_CODE_UPDATED="false"
-    - if [ $(git diff origin/$CI_DEFAULT_BRANCH Chart.yaml|grep "^version:" |wc -l) -lt 2 ];then export VERSION_UPDATE="false";else export VERSION_UPDATE="true";fi
+    - if [ $(git diff origin/$CI_DEFAULT_BRANCH Chart.yaml|grep version:|wc -l) -lt 2 ];then export VERSION_UPDATE="false";else export VERSION_UPDATE="true";fi
     - if [ $(git diff origin/$CI_DEFAULT_BRANCH ':(exclude).gitlab-ci.yml' ':(exclude)renovate.json' ':(exclude)README.md' ':(exclude).helmignore' ':(exclude)tests/*'|wc -l) -gt 0 ]; then HELM_CODE_UPDATED="true";fi
     - if [ "$VERSION_UPDATE" == "false" ] && [ "$HELM_CODE_UPDATED" == "true" ] ;then echo "The Helm Chart version needs to be updated.";exit 1; fi
   rules:
-- 
GitLab