From f524f731a700ecacb2f125c8b2b348bf149e052f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Farys?= Date: Fri, 31 May 2024 21:50:12 +0200 Subject: [PATCH] Update actions/checkout to v4, added check for release action --- .github/workflows/lint-test.yaml | 2 +- .github/workflows/release.yaml | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml index 0bb07ab..3fce70a 100644 --- a/.github/workflows/lint-test.yaml +++ b/.github/workflows/lint-test.yaml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 631a516..1f7a4e4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -27,7 +27,19 @@ jobs: with: version: v3.14.4 + - name: Set up chart-testing + uses: helm/chart-testing-action@v2.6.1 + + - name: Check changed charts + 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-releaser uses: helm/chart-releaser-action@v1.6.0 + if: steps.list-changed.outputs.changed == 'true' env: CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"