From adf995c25d638b9aa5f9596752115ed0ee9f17cc Mon Sep 17 00:00:00 2001 From: Shivam Kumar Date: Sun, 15 Dec 2024 21:37:41 +0530 Subject: [PATCH] workflow: Fix Release Workflow Failing On Charts With External Dependencies Credits: https://github.com/helm/chart-releaser-action/issues/74#issuecomment-1206111172 Signed-off-by: Shivam Kumar --- .github/workflows/release.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f3c78cd..89b847d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -37,6 +37,15 @@ jobs: git config user.name "$GITHUB_ACTOR" git config user.email "$GITHUB_ACTOR@users.noreply.github.com" + - name: Install Helm + uses: azure/setup-helm@v4 + + - name: Add Helm Repositories + run: | + for dir in $(ls -d charts/*/); do + helm dependency list $dir 2> /dev/null | tail +2 | head -n -1 | awk '{ print "helm repo add " $1 " " $3 }' | while read cmd; do $cmd; done + done + - name: Run chart-releaser uses: helm/chart-releaser-action@v1.6.0 env: