From fe7ff5c4dbec0d91ee95708ddeb288761dada5f8 Mon Sep 17 00:00:00 2001 From: JesseBot Date: Thu, 14 Dec 2023 16:55:42 +0100 Subject: [PATCH] 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 --- .github/workflows/helm_ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/helm_ci.yml b/.github/workflows/helm_ci.yml index 5f1721ed4..86f6b83d0 100644 --- a/.github/workflows/helm_ci.yml +++ b/.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 \ No newline at end of file + run: ct install --target-branch ${{ github.event.repository.default_branch }} --all --chart-dirs k8s/charts