From f69653bd865a40dcf937a8f74ef1de007dc3e7c9 Mon Sep 17 00:00:00 2001 From: fogelito Date: Tue, 30 Jun 2026 14:38:59 +0300 Subject: [PATCH] add else if --- .github/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e37d842d49..e52f108de6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -371,6 +371,9 @@ jobs: for attempt in 1 2 3; do if docker compose pull --quiet --ignore-buildable; then break + elif [ "$attempt" -eq 3 ]; then + echo "::error::docker compose pull failed after 3 attempts; aborting" + exit 1 fi echo "::warning::docker compose pull failed (attempt ${attempt}/3); retrying in 15s" sleep 15 @@ -470,6 +473,9 @@ jobs: for attempt in 1 2 3; do if docker compose pull --quiet --ignore-buildable; then break + elif [ "$attempt" -eq 3 ]; then + echo "::error::docker compose pull failed after 3 attempts; aborting" + exit 1 fi echo "::warning::docker compose pull failed (attempt ${attempt}/3); retrying in 15s" sleep 15 @@ -562,6 +568,9 @@ jobs: for attempt in 1 2 3; do if docker compose pull --quiet --ignore-buildable; then break + elif [ "$attempt" -eq 3 ]; then + echo "::error::docker compose pull failed after 3 attempts; aborting" + exit 1 fi echo "::warning::docker compose pull failed (attempt ${attempt}/3); retrying in 15s" sleep 15 @@ -629,6 +638,9 @@ jobs: for attempt in 1 2 3; do if docker compose pull --quiet --ignore-buildable; then break + elif [ "$attempt" -eq 3 ]; then + echo "::error::docker compose pull failed after 3 attempts; aborting" + exit 1 fi echo "::warning::docker compose pull failed (attempt ${attempt}/3); retrying in 15s" sleep 15