Skip to content

Commit

Permalink
Retry composer install steps 2 times because of random failures
Browse files Browse the repository at this point in the history
In ramsey/composer-install#79 we see the same
behaviour as in our own builds; because the package doesn't natively
supports a retry feature I have added 2 'backup' tasks doing the same
thing. I hope this will make builds more stable
  • Loading branch information
mvriel committed Sep 17, 2021
1 parent bba90ec commit bfd6b85
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/push.yml
Expand Up @@ -377,6 +377,20 @@ jobs:
with:
composer-options: --optimize-autoloader

# Retry composer step again because of: https://github.com/ramsey/composer-install/issues/79
- name: Install Composer dependencies & cache dependencies
if: ${{ failure() }}
uses: "ramsey/composer-install@v1"
with:
composer-options: --optimize-autoloader

# Retry composer step a third time because of: https://github.com/ramsey/composer-install/issues/79
- name: Install Composer dependencies & cache dependencies
if: ${{ failure() }}
uses: "ramsey/composer-install@v1"
with:
composer-options: --optimize-autoloader

- name: Install PHAR dependencies
env:
GITHUB_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit bfd6b85

Please sign in to comment.