File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Release a chart
22
3- # on:
4- # push:
5- # branches:
6- # - master
7-
83on :
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
You can’t perform that action at this time.
0 commit comments