Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,21 @@ jobs:
id: prime-helm-repos
run: |
set -e

dependency_count=$(yq eval '.dependencies | length' ${{ inputs.repo }}/charts/${{ inputs.repo }}/Chart.yaml)
if [[ "$dependency_count" -lt 1 ]]; then
echo "No dependencies found in Chart.yaml. Skipping helm repo operations."
exit 0
fi

yq eval '.dependencies[] | .name + " " + .repository' ${{ inputs.repo }}/charts/${{ inputs.repo }}/Chart.yaml | while read -r repo_name repo_url; do
if [[ ! "$repo_url" =~ ^(oci://|file://) ]]; then
helm repo add "$repo_name" "$repo_url"
else
echo "Skipping repository $repo_url for $repo_name"
fi
done

helm repo update
helm dependency update ${{ inputs.repo }}/charts/${{ inputs.repo }}

Expand Down