From 98bef43c70b03143820c2d30fc348b6748c79089 Mon Sep 17 00:00:00 2001 From: "Dr. Christoph \"Schorsch\" Jung" Date: Fri, 1 Sep 2023 10:01:40 +0200 Subject: [PATCH] fix(chart-lint): Use the event branch as the linting and change reference --- .github/workflows/helm-chart-lint.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/helm-chart-lint.yml b/.github/workflows/helm-chart-lint.yml index d639fbe9..bc912a12 100644 --- a/.github/workflows/helm-chart-lint.yml +++ b/.github/workflows/helm-chart-lint.yml @@ -76,12 +76,12 @@ jobs: uses: helm/chart-testing-action@v2.3.1 - name: Run chart-testing (lint) - run: ct lint --target-branch ${{ github.event.repository.default_branch }} --config charts/config/chart-testing-config.yaml + run: ct lint --target-branch ${{ github.event.ref }} --config charts/config/chart-testing-config.yaml - name: Run chart-testing (list-changed) id: list-changed run: | - changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }}) + changed=$(ct list-changed --target-branch ${{ github.event.ref }}) if [[ -n "$changed" ]]; then echo "CHART_CHANGED=true" >> $GITHUB_ENV fi