Skip to content

Commit 92a1177

Browse files
committed
ci: update chart release action to include dependencies
1 parent 9eeac92 commit 92a1177

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/release-helm.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Release Charts
33
on:
44
workflow_dispatch:
55
push:
6+
paths:
7+
- "charts/**"
68
branches:
79
- main
810

@@ -19,6 +21,12 @@ jobs:
1921
with:
2022
fetch-depth: 0
2123

24+
- name: Add repositories
25+
run: |
26+
for dir in $(ls -d charts/*/); do
27+
helm dependency list $dir 2> /dev/null | grep -v 0.0.0 | tail +2 | head -n -1 | awk '{ print "helm repo add " $1 " " $3 }' | while read cmd; do $cmd; done
28+
done
29+
2230
- name: Configure Git
2331
run: |
2432
git config user.name "$GITHUB_ACTOR"
File renamed without changes.

0 commit comments

Comments
 (0)