From e55ddb5781c07272146e596594392daacd2ca7e1 Mon Sep 17 00:00:00 2001 From: Jochem Date: Tue, 9 Jul 2024 12:24:03 +0200 Subject: [PATCH] Skip version increment check Adjust workflow --- .github/workflows/chart-testing.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/chart-testing.yml b/.github/workflows/chart-testing.yml index f7ac7a3..8c197bd 100644 --- a/.github/workflows/chart-testing.yml +++ b/.github/workflows/chart-testing.yml @@ -39,13 +39,21 @@ jobs: fi - name: Run chart-testing (lint) - if: steps.list-changed.outputs.changed == 'true' - run: ct lint --target-branch ${{ github.event.repository.default_branch }} + if: steps.list-changed.outputs.changed == 'true' && github.ref != 'refs/heads/develop' + run: ct lint --target-branch ${{ github.event.repository.default_branch }} --check-version-increment=false + + - name: Run chart-testing (lint & version) + if: github.ref == 'refs/heads/develop' + run: ct lint --target-branch main - name: Create kind cluster if: steps.list-changed.outputs.changed == 'true' uses: helm/kind-action@v1.10.0 - name: Run chart-testing (install) - if: steps.list-changed.outputs.changed == 'true' - run: ct install --target-branch ${{ github.event.repository.default_branch }} --skip-clean-up \ No newline at end of file + if: steps.list-changed.outputs.changed == 'true' && github.ref != 'refs/heads/develop' + run: ct install --target-branch ${{ github.event.repository.default_branch }} --skip-clean-up + + - name: Run chart-testing (install & upgrades) + if: github.ref == 'refs/heads/develop' + run: ct install --target-branch main --skip-clean-up --upgrade \ No newline at end of file