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
9 changes: 4 additions & 5 deletions .github/workflows/sync-helm-charts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ jobs:
path: helm-charts-cloned
persist-credentials: true

- name: Patch original AKO chart dependencies
run: |
sed -i 's|repository: "file://../../helm-charts/atlas-operator-crds"|repository: "https://mongodb.github.io/helm-charts"|' helm-charts/atlas-operator/Chart.yaml

- name: Generate AKO bundle
env:
VERSION: "1.0.0"
Expand All @@ -68,6 +64,10 @@ jobs:
run: |
devbox run -- "make helm-upd-rbac"

- name: Patch original AKO chart dependencies
run: |
awk '{gsub(/repository: *"file:\/\/..\/..\/helm-charts\/atlas-operator-crds"/, "repository: \"https://mongodb.github.io/helm-charts\"")}1' helm-charts/atlas-operator/Chart.yaml > temp.yaml && mv temp.yaml helm-charts/atlas-operator/Chart.yaml

- name: Verify if helm-charts need to be synced
run: |
for dir in ./helm-charts/*; do
Expand All @@ -76,7 +76,6 @@ jobs:
echo "Checking for changes in the Chart: $dir"
if [[ -n $(diff -r "./helm-charts/$dir" "./helm-charts-cloned/charts/$dir") ]]; then
echo "> Changes detected for the Chart: $dir"
diff -r "./helm-charts/$dir" "./helm-charts-cloned/charts/$dir"
cp -r "./helm-charts/$dir" "./helm-charts-cloned/charts/$dir"
else
echo "> No changes detected for the Chart: $dir"
Expand Down