From e38d7006120e188642b30f24ccfa8f353e1797d9 Mon Sep 17 00:00:00 2001 From: myrmidex Date: Mon, 17 Aug 2026 17:33:18 +0200 Subject: [PATCH] 46 - Retry composer install on transient 429 --- .forgejo/workflows/ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index e6bdde5..40c92e0 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -22,7 +22,14 @@ jobs: restore-keys: composer- - name: Install dependencies - run: composer install --no-interaction --prefer-dist + run: | + for attempt in 1 2 3 4 5; do + echo "composer install attempt $attempt/5" + composer install --no-interaction --prefer-dist && exit 0 + echo "composer install failed (attempt $attempt/5), retrying in 30s..." + sleep 30 + done + exit 1 - name: Prepare environment run: cp .env.testing .env