Skip to content
Snippets Groups Projects
Commit bece0413 authored by Michael Schulte's avatar Michael Schulte
Browse files

Anchor the version search in order to not pick up the version attribute of dependencies.

parent e4556220
Branches
1 merge request!59Fix version check
......@@ -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:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment