From 8c7b2298f56cf96b9e538e3e4e279f0b9c983b42 Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Thu, 7 Oct 2021 16:41:21 +0300 Subject: [PATCH] github actions: retry problematic steps up to 5 times --- .github/workflows/packages.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index 4fda5c189..e7060b8fb 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -221,9 +221,9 @@ jobs: if [ "$uploaded_files" = "true" ]; then echo "[$(date +%H:%M:%S)] Adding packages to repository '$REPOSITORY_NAME'..." - # Retry up to 3 times. + # Retry up to 5 times. http_status_code="" - for _ in {1..3}; do + for _ in {1..5}; do curl_response=$( set +e curl \ @@ -260,9 +260,9 @@ jobs: # Final part to make changes appear in web root. echo "[$(date +%H:%M:%S)] Publishing repository changes..." - # Retry up to 3 times. + # Retry up to 5 times. http_status_code="" - for _ in {1..3}; do + for _ in {1..5}; do curl_response=$( set +e curl \