From 0a703bcc57dfe011d0dd1fb87ee75cdd5130022b Mon Sep 17 00:00:00 2001 From: Shubham Gupta <69793468+shubham-cmyk@users.noreply.github.com> Date: Fri, 13 Oct 2023 05:05:33 +0530 Subject: [PATCH] add python (#160) Signed-off-by: Shubham Gupta --- .github/workflows/release.yaml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b585bd16..e7de5865 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -26,7 +26,15 @@ jobs: uses: azure/setup-helm@v3 with: version: v3.5.4 - + + - uses: actions/setup-python@v4 + with: + python-version: '3.9' + check-latest: true + + - name: Set up chart-testing + uses: helm/chart-testing-action@v2.4.0 + - name: Add Helm Repository run: | helm repo add jetstack https://charts.jetstack.io @@ -37,22 +45,18 @@ jobs: - name: Update Chart Dependencies for redis-operator run: helm dependency update charts/redis-operator - - name: Set up chart-testing - uses: helm/chart-testing-action@v2.4.0 - - name: List Changed Charts id: list-changed run: | - changed_charts=$(ct list-changed) + changed_charts=$(ct list-changed --debug) echo "Changed charts: $changed_charts" echo "::set-output name=changed_charts::$changed_charts" - name: Package and Release Charts run: | - for CHART_DIR in $(find charts -maxdepth 1 -type d | tail --lines +2); do - CHART=$(basename $CHART_DIR) + for CHART in ${{ steps.list-changed.outputs.changed_charts }}; do echo "Packaging $CHART..." - helm package $CHART_DIR + helm package charts/$CHART done - name: Run chart-releaser