Skip to content

Commit ce3a059

Browse files
author
Lukasz Chwastyk
committed
test
1 parent 47d2dfb commit ce3a059

1 file changed

Lines changed: 17 additions & 7 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
name: Release a chart
22

3-
# on:
4-
# push:
5-
# branches:
6-
# - master
7-
83
on:
94
push:
105
branches:
@@ -74,10 +69,25 @@ jobs:
7469
version: '3.5.4'
7570
id: install
7671

77-
- name: Add dependency chart repos and update
72+
- name: Add dependency chart repos
7873
run: |
7974
helm repo add ecovadis https://ecovadiscode.github.io/charts/
80-
helm repo update
75+
76+
- name: Wait for core chart availability in Helm repo
77+
run: |
78+
CORE_VERSION=$(grep '^version:' charts/core/Chart.yaml | awk '{print $2}')
79+
echo "Waiting for charts-core ${CORE_VERSION} to be available..."
80+
for i in $(seq 1 30); do
81+
helm repo update 2>/dev/null
82+
if helm search repo ecovadis/charts-core --version "${CORE_VERSION}" | grep -q "${CORE_VERSION}"; then
83+
echo "charts-core ${CORE_VERSION} is available!"
84+
exit 0
85+
fi
86+
echo "Attempt ${i}/30 - not yet available, waiting 10s..."
87+
sleep 10
88+
done
89+
echo "Timeout waiting for charts-core ${CORE_VERSION} after 5 minutes"
90+
exit 1
8191
8292
- name: Run chart-releaser for remaining charts
8393
uses: helm/chart-releaser-action@v1.4.0

0 commit comments

Comments
 (0)