46 - Retry composer install on transient 429
This commit is contained in:
parent
0988f40dac
commit
e38d700612
1 changed files with 8 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue