Browse Source

Update helm_ci.yml - add `ct` flag `--target-branch ${{ github.event.repository.default_branch }}` (#5106)

* Update helm_ci.yml - add ct link flag --target-branch ${{ github.event.repository.default_branch }}

This validates that the chart version has been bumped

* Update helm_ci.yml - add --target-branch to ct list-changed command
pull/5110/head
JesseBot 1 year ago
committed by GitHub
parent
commit
fe7ff5c4db
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      .github/workflows/helm_ci.yml

6
.github/workflows/helm_ci.yml

@ -36,16 +36,16 @@ jobs:
- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --chart-dirs k8s/charts)
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }} --chart-dirs k8s/charts)
if [[ -n "$changed" ]]; then
echo "::set-output name=changed::true"
fi
- name: Run chart-testing (lint)
run: ct lint --all --validate-maintainers=false --chart-dirs k8s/charts
run: ct lint --target-branch ${{ github.event.repository.default_branch }} --all --validate-maintainers=false --chart-dirs k8s/charts
- name: Create kind cluster
uses: helm/kind-action@v1.8.0
- name: Run chart-testing (install)
run: ct install --all --chart-dirs k8s/charts
run: ct install --target-branch ${{ github.event.repository.default_branch }} --all --chart-dirs k8s/charts
Loading…
Cancel
Save