From 22b22385415403cd8cca2292ff5b155c2ce28284 Mon Sep 17 00:00:00 2001 From: Vishal Choudhary Date: Wed, 25 Oct 2023 16:02:12 +0530 Subject: [PATCH] fix: dynamically get branch name in helm test (#8732) * fix: dynamically get branch name in helm test Signed-off-by: Vishal Choudhary * fix: add env variable branch name Signed-off-by: Vishal Choudhary * fix: use head ref Signed-off-by: Vishal Choudhary * cleanup: remove debug statements Signed-off-by: Vishal Choudhary --------- Signed-off-by: Vishal Choudhary --- .github/workflows/helm-test.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/helm-test.yaml b/.github/workflows/helm-test.yaml index 5e77e51cef..51359ebfbe 100644 --- a/.github/workflows/helm-test.yaml +++ b/.github/workflows/helm-test.yaml @@ -38,9 +38,9 @@ jobs: uses: helm/chart-testing-action@e8788873172cb653a90ca2e819d79d65a66d4e76 # v2.4.0 - name: Run chart-testing (lint) run: | - if [[ $(ct list-changed --target-branch=main) ]]; + if [[ $(ct list-changed --target-branch=${{ github.base_ref }}) ]]; then - ct lint --target-branch=main --check-version-increment=false --validate-maintainers=false + ct lint --target-branch=${{ github.base_ref }} --check-version-increment=false --validate-maintainers=false fi - name: Setup test env uses: ./.github/actions/setup-test-env