Skip to content

Commit

Permalink
fix: automatically add repos in chart-releaser.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyannn committed Jan 6, 2024
1 parent 679a739 commit f8746cb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/chart-releaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
Expand Down

0 comments on commit f8746cb

Please sign in to comment.