Skip to content

Commit

Permalink
ci(Linting): check version increment only if the chart version is a r…
Browse files Browse the repository at this point in the history
…elease version
  • Loading branch information
nicoprow committed Jul 9, 2024
1 parent 201db14 commit 069c5c0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/chart-test-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,17 @@ jobs:
with:
fetch-depth: 0

- name: Check for Release Version
id: checkRelease
run: |
CHART_VERSION=$(grep 'version:' ./charts/bpdm/Chart.yaml | head -n1 | awk '{ print $2}')
SNAPSHOT=$(echo $CHART_VERSION | grep 'SNAPSHOT')
if [[ -z "$SNAPSHOT" ]]; then
IS_RELEASE=true; else
IS_RELEASE=false
fi
echo "isRelease=$IS_RELEASE" >> $GITHUB_OUTPUT
- name: Set up Helm
uses: azure/setup-helm@v4
with:
Expand All @@ -57,6 +68,7 @@ jobs:
run: |
cat <<EOF > .chart-testing-config.yaml
validate-maintainers: false
check-version-increment: ${{ steps.checkRelease.outputs.isRelease }}
chart-repos:
- bitnami=https://charts.bitnami.com/bitnami
EOF
Expand Down

0 comments on commit 069c5c0

Please sign in to comment.