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: