From 823b2bbde319003ebd15dec5641d9f4f433b4a21 Mon Sep 17 00:00:00 2001 From: Junwei Zhao Date: Wed, 6 Aug 2025 21:42:53 +1000 Subject: [PATCH] Test chart publishing --- .github/workflows/helm-release.yml | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/.github/workflows/helm-release.yml b/.github/workflows/helm-release.yml index 2b73e99..54a0230 100644 --- a/.github/workflows/helm-release.yml +++ b/.github/workflows/helm-release.yml @@ -28,21 +28,33 @@ jobs: fetch-depth: 0 - name: Set up Helm - uses: azure/setup-helm@v4 + uses: azure/setup-helm@v4.2.0 with: - version: '3.14.0' + version: v3.17.0 + + - uses: actions/setup-python@v5.3.0 + with: + python-version: '3.x' + check-latest: true - name: Set up chart-testing - uses: helm/chart-testing-action@v2.6.1 + uses: helm/chart-testing-action@v2.7.0 - - name: Run chart-testing (list) - run: ct list --target-branch ${{ github.event.repository.default_branch }} --chart-dirs helm + - name: Run chart-testing (list-changed) + id: list-changed + run: | + changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }}) + if [[ -n "$changed" ]]; then + echo "changed=true" >> "$GITHUB_OUTPUT" + fi - name: Run chart-testing (lint) - run: ct lint --target-branch ${{ github.event.repository.default_branch }} --chart-dirs helm + if: steps.list-changed.outputs.changed == 'true' + run: ct lint --target-branch ${{ github.event.repository.default_branch }} - name: Create kind cluster - uses: helm/kind-action@v1.9.0 + if: steps.list-changed.outputs.changed == 'true' + uses: helm/kind-action@v1.12.0 - name: Run chart-testing (install) run: |