UNCLASSIFIED - NO CUI

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

ci: added linting for changelog and version

parent 530a5a47
No related branches found
No related tags found
1 merge request!158Linting for changelog and version
Pipeline #136053 failed
#!/usr/bin/env bash
# diff the file silently, while still printing errors
git diff --exit-code ${CI_DEFAULT_BRANCH}:${CHANGELOG_FILE} ${CHANGELOG_FILE} >/dev/null
git diff --exit-code origin/${CI_DEFAULT_BRANCH}:${CHANGELOG_FILE} ${CHANGELOG_FILE} >/dev/null
# exit code of 0 indicates non changed file
if [ $? -eq 0 ]; then
......
#!/usr/bin/env bash
# obtain the default version
default_version=$(git show ${CI_DEFAULT_BRANCH}:${CHART_FILE} | grep -oP 'version: \K(.*)')
default_version=$(git show origin/${CI_DEFAULT_BRANCH}:${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