diff --git a/.github/workflows/helm-chart-lint.yml b/.github/workflows/helm-chart-lint.yml index de171ee8..5c149ca8 100644 --- a/.github/workflows/helm-chart-lint.yml +++ b/.github/workflows/helm-chart-lint.yml @@ -66,6 +66,7 @@ jobs: lint-test: runs-on: ubuntu-latest + needs: [ git-branch ] steps: - name: Checkout uses: actions/checkout@v3 @@ -87,12 +88,12 @@ jobs: uses: helm/chart-testing-action@v2.3.1 - name: Run chart-testing (lint) - run: ct lint --target-branch ${{ github.event.ref }} --config charts/config/chart-testing-config.yaml + run: ct lint --target-branch ${{ needs.git-branch.outputs.value }} --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.ref }}) + changed=$(ct list-changed --target-branch ${{ needs.git-branch.outputs.value }} if [[ -n "$changed" ]]; then echo "CHART_CHANGED=true" >> $GITHUB_ENV fi