From 71efabfdd5c9be233633bae64befec8f3c53bfcd Mon Sep 17 00:00:00 2001 From: Miguel Ruiz Date: Wed, 15 Jan 2025 16:59:04 +0100 Subject: [PATCH] Fix wait Signed-off-by: Miguel Ruiz --- .github/workflows/index-monitor.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/index-monitor.yml b/.github/workflows/index-monitor.yml index e8c33127732147..cdf37d0f081011 100644 --- a/.github/workflows/index-monitor.yml +++ b/.github/workflows/index-monitor.yml @@ -30,7 +30,7 @@ jobs: # A single success is enough to pass while [[ "${status}" != "ok" && $attempts -lt 3 ]]; do # Check the index.yaml integrity - REMOTE_MD5=($(curl -Ls http://charts.bitnami.com/bitnami/index.yaml | md5sum)) + REMOTE_MD5=($(curl -Ls https://charts.bitnami.com/bitnami/index.yaml | md5sum)) REPOSITORY_MD5=($(md5sum bitnami/index.yaml)) # Compare the index.yaml checksums remote and locally if [[ "${REPOSITORY_MD5[0]}" == "${REMOTE_MD5[0]}" ]]; then @@ -38,9 +38,9 @@ jobs: else attempts=$((attempts+1)) echo "Integrity check failed. Remote checksum '${REMOTE_MD5[0]}' does not match expected '${REPOSITORY_MD5[0]}'"; + # Wait 30 seconds + sleep 30 fi - # Wait 30 seconds - sleep 30 done echo "result=${status}" >> $GITHUB_OUTPUT - name: Show messages @@ -67,7 +67,7 @@ jobs: - name: Validate helm repository id: validation-check run: | - repo="http://charts.bitnami.com/bitnami" + repo="https://charts.bitnami.com/bitnami" status="fail" attempts=0 # We want to check for consistent failures @@ -84,9 +84,9 @@ jobs: if helm repo list | grep -q bitnami; then helm repo remove bitnami fi + # Wait 30 seconds + sleep 30 fi - # Wait 30 seconds - sleep 30 done echo "result=${status}" >> $GITHUB_OUTPUT - name: Show messages