Avoid running chart version increment validation when it's not required (#8935)

This commit is contained in:
Juan Ariza Toledano
2022-02-09 09:14:23 +01:00
committed by GitHub
parent bc979f7764
commit dff47ebeb3
2 changed files with 12 additions and 2 deletions

View File

@@ -2,7 +2,6 @@ chart-dirs:
- bitnami
chart-repos:
- bitnami=https://charts.bitnami.com/bitnami
check-version-increment: true
debug: true
remote: origin
validate-chart-schema: true

View File

@@ -15,8 +15,19 @@ jobs:
- name: Set up chart-testing
uses: helm/chart-testing-action@v2.1.0
- name: Get list of files with changes in Pull Request
id: pr-file-changes
uses: trilom/file-changes-action@v1.2.4
with:
fileOutput: ' '
- name: Run chart-testing (lint)
run: ct lint --config .github/ct-lint.yaml
run: |
if grep -q 'templates\|crds\|Chart.yaml\|values.yaml' $HOME/files.txt; then
ct lint --config .github/ct-lint.yaml --check-version-increment
else
ct lint --config .github/ct-lint.yaml
fi
test:
runs-on: ubuntu-latest