From f8746cbb8edff16a98bc65b75bc362e31b567e33 Mon Sep 17 00:00:00 2001 From: Ilya Nikokoshev Date: Sat, 6 Jan 2024 14:15:01 +0100 Subject: [PATCH] fix: automatically add repos in chart-releaser.yaml --- .github/workflows/chart-releaser.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/chart-releaser.yaml b/.github/workflows/chart-releaser.yaml index 699e4b8..a952531 100644 --- a/.github/workflows/chart-releaser.yaml +++ b/.github/workflows/chart-releaser.yaml @@ -26,6 +26,14 @@ jobs: - name: Install Helm uses: azure/setup-helm@v3 + - name: Add missing repositories + # https://github.com/helm/helm/issues/9903#issue-935152749 + # https://github.com/helm/helm/issues/8036#issuecomment-1126959239 + run: | + if [ -f "./Chart.lock" ]; then + yq --indent 0 '.dependencies | map(["helm", "repo", "add", .name, .repository] | join(" ")) | .[]' "./Chart.lock" | sh -- + fi + - name: Run chart-releaser uses: helm/chart-releaser-action@v1.6.0 with: