UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 530a5a47 authored by Zachariah Dzielinski's avatar Zachariah Dzielinski
Browse files

ci: added linting for changelog and version

parent 8f95f878
No related branches found
No related tags found
1 merge request!158Linting for changelog and version
Pipeline #136052 failed
#!/usr/bin/env bash
# obtain the default version
default_version=$(git show ${CI_DEFAULT_BRANCH}:${CHART_FILE} | ggrep -oP 'version: \K(.*)')
default_version=$(git show ${CI_DEFAULT_BRANCH}:${CHART_FILE} | grep -oP 'version: \K(.*)')
# check for command error
if [ $? -ne 0 ]; then
......@@ -10,7 +10,7 @@ if [ $? -ne 0 ]; then
fi
# obtain the local version
local_version=$(cat ${CHART_FILE} | ggrep -oP 'version: \K(.*)')
local_version=$(cat ${CHART_FILE} | grep -oP 'version: \K(.*)')
# check for command error
if [ $? -ne 0 ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment